Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | |
| 2 | # Enable the use of zynqmp-pmu for specific recipes only |
| 3 | def zynqmp_pmu_enable_for_bpns(d): |
| 4 | bpn = d.getVar("BPN") |
| 5 | crossbpns = ["binutils", "gcc"] |
| 6 | targetbpns = ["libgcc", "newlib", "libgloss"] |
| 7 | if bpn in targetbpns: |
| 8 | return True |
| 9 | if bpn in crossbpns and bb.data.inherits_class('cross', d): |
| 10 | return True |
| 11 | return False |
| 12 | |
| 13 | BBCLASSEXTEND_append = "${@' zynqmp-pmu' if zynqmp_pmu_enable_for_bpns(d) else ''}" |
| 14 | |
| 15 | # Add the pkgarch to the extra list, this is done to avoid warnings about |
| 16 | # missing manifests due to implicit dependency chains on populate_sysroot when |
| 17 | # a recipe/task depends on a IMAGE_EXTRADEPENDS/do_deploy task which is |
| 18 | # provided by a zynqmp-pmu-* target. |
| 19 | PACKAGE_EXTRA_ARCHS_append = " microblazeel-v9.2-bs-cmp" |
| 20 | |