blob: fd9e980902af0c6c460c89b0227164ecfea42905 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001
2# Enable the use of zynqmp-pmu for specific recipes only
3def 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
13BBCLASSEXTEND_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.
19PACKAGE_EXTRA_ARCHS_append = " microblazeel-v9.2-bs-cmp"
20