summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-08-18 23:28:53 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-08-27 19:15:41 +1000
commit3c5ac860edcb7d26a0cbf01a460e5c63ab50c68d (patch)
tree932cc64bec879995e3fdc2ae664035a69a6f917f
parent18097af3120a394a8e6933b7abc85e73e508c7e3 (diff)
downloadmeta-xilinx-3c5ac860edcb7d26a0cbf01a460e5c63ab50c68d.tar.gz
zynqmp-pmu-config.inc: Limit to specific recipes
Limit the appending/enabling of the zynqmp-pmu BBCLASSEXTEND to only specific recipes which are used for the building of pmu-firmware. This is just binutils, gcc, newlib, libgloss and pmu-firmware itself. The limiting is done based on the BPN of the recipe, which is not provided as an override so the conditional is tested with an inline python function. This change removes the need for the extender class to be enabled globally which can conflict with certain recipes that were not written to be extended by the BBCLASSEXTEND mechanism. This change also improves the parse time avoiding the need to parse all recipes for both target and zynqmp-pmu. Add comment for the PACKAGE_EXTRA_ARCHS setting, so it is clear why it is set. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Acked-by: Alistair Francis <alistair.francis@xilinx.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com>
-rw-r--r--conf/machine/include/zynqmp-pmu-config.inc18
1 files changed, 16 insertions, 2 deletions
diff --git a/conf/machine/include/zynqmp-pmu-config.inc b/conf/machine/include/zynqmp-pmu-config.inc
index aa854cdc..ffe2cf43 100644
--- a/conf/machine/include/zynqmp-pmu-config.inc
+++ b/conf/machine/include/zynqmp-pmu-config.inc
@@ -1,5 +1,19 @@
1 1
2# Enable the use of zynqmp-pmu specific recipe builds 2# Enable the use of zynqmp-pmu for specific recipes only
3BBCLASSEXTEND_append = " zynqmp-pmu" 3def zynqmp_pmu_enable_for_bpns(d):
4 bpns = [
5 "binutils",
6 "gcc", "libgcc",
7 "newlib", "libgloss",
8 "pmu-firmware",
9 ]
10 return " zynqmp-pmu" if (d.getVar("BPN") in bpns) else ""
11
12BBCLASSEXTEND_append = "${@zynqmp_pmu_enable_for_bpns(d)}"
13
14# Add the pkgarch to the extra list, this is done to avoid warnings about
15# missing manifests due to implicit dependency chains on populate_sysroot when
16# a recipe/task depends on a IMAGE_EXTRADEPENDS/do_deploy task which is
17# provided by a zynqmp-pmu-* target.
4PACKAGE_EXTRA_ARCHS_append = " microblazeel-v9.2-bs-cmp" 18PACKAGE_EXTRA_ARCHS_append = " microblazeel-v9.2-bs-cmp"
5 19