diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-08-29 18:32:41 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-10-18 17:59:25 +1000 |
commit | 09e9c3e8428d780b6056918b61766247d87e5b59 (patch) | |
tree | 6f0c4b135976c1a3a07dfeb40d004d580bd66cba /conf | |
parent | 9a759f830bd623626f3e623ebf72428293acb93d (diff) | |
download | meta-xilinx-09e9c3e8428d780b6056918b61766247d87e5b59.tar.gz |
zynqmp-pmu-config.inc: Restrict BPNs further
Restrict binutils and gcc to their -cross variant only. This prevents
world targets from selecting zynqmp-pmu-gcc/binutils which require more
dependencies.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/machine/include/zynqmp-pmu-config.inc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/conf/machine/include/zynqmp-pmu-config.inc b/conf/machine/include/zynqmp-pmu-config.inc index ffe2cf43..23d9ade1 100644 --- a/conf/machine/include/zynqmp-pmu-config.inc +++ b/conf/machine/include/zynqmp-pmu-config.inc | |||
@@ -1,15 +1,16 @@ | |||
1 | 1 | ||
2 | # Enable the use of zynqmp-pmu for specific recipes only | 2 | # Enable the use of zynqmp-pmu for specific recipes only |
3 | def zynqmp_pmu_enable_for_bpns(d): | 3 | def zynqmp_pmu_enable_for_bpns(d): |
4 | bpns = [ | 4 | bpn = d.getVar("BPN") |
5 | "binutils", | 5 | crossbpns = ["binutils", "gcc"] |
6 | "gcc", "libgcc", | 6 | targetbpns = ["libgcc", "newlib", "libgloss", "pmu-firmware"] |
7 | "newlib", "libgloss", | 7 | if bpn in targetbpns: |
8 | "pmu-firmware", | 8 | return True |
9 | ] | 9 | if bpn in crossbpns and bb.data.inherits_class('cross', d): |
10 | return " zynqmp-pmu" if (d.getVar("BPN") in bpns) else "" | 10 | return True |
11 | return False | ||
11 | 12 | ||
12 | BBCLASSEXTEND_append = "${@zynqmp_pmu_enable_for_bpns(d)}" | 13 | BBCLASSEXTEND_append = "${@' zynqmp-pmu' if zynqmp_pmu_enable_for_bpns(d) else ''}" |
13 | 14 | ||
14 | # Add the pkgarch to the extra list, this is done to avoid warnings about | 15 | # 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 | # missing manifests due to implicit dependency chains on populate_sysroot when |