summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-08-21 18:51:53 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-08-27 19:15:52 +1000
commita99f9498ffc4227785d13c96e840029395e463de (patch)
tree1bdab1119819420111eec2ecd7b59bb9bbdf025c /classes
parent3c5ac860edcb7d26a0cbf01a460e5c63ab50c68d (diff)
downloadmeta-xilinx-a99f9498ffc4227785d13c96e840029395e463de.tar.gz
zynqmp-pmu.bbclass: Fix issues with zynqmp-pmu and multilib
When using multilib the MULTILIB_VARIANTS variable is populated, this triggers differing code paths in certain recipes. These are not desired for the firmware building, since they modify the install paths. Also set the DEFAULTTUNE to avoid changes to BASELIB/baselib when multilib is used, as it attempts to set BASELIB based on 'tune-*' overrides. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Acked-by: Alistair Francis <alistair.francis@xilinx.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/zynqmp-pmu.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/zynqmp-pmu.bbclass b/classes/zynqmp-pmu.bbclass
index 72913445..910e8eb9 100644
--- a/classes/zynqmp-pmu.bbclass
+++ b/classes/zynqmp-pmu.bbclass
@@ -16,6 +16,7 @@
16ORIG_TARGET_ARCH := "${TARGET_ARCH}" 16ORIG_TARGET_ARCH := "${TARGET_ARCH}"
17 17
18# zynqmp-pmu target arch (hardcoded based on pre-gen data from arch-microblaze.inc) 18# zynqmp-pmu target arch (hardcoded based on pre-gen data from arch-microblaze.inc)
19DEFAULTTUNE = "microblaze"
19ABIEXTENSION = "" 20ABIEXTENSION = ""
20TUNE_ARCH = "microblazeel" 21TUNE_ARCH = "microblazeel"
21#TUNE_FEATURES_tune-microblaze += "v9.2 little-endian barrel-shift pattern-compare" 22#TUNE_FEATURES_tune-microblaze += "v9.2 little-endian barrel-shift pattern-compare"
@@ -65,6 +66,9 @@ python multitarget_zynqmp_pmu_virtclass_handler () {
65 e.data.setVar("MLPREFIX", variant + "-") 66 e.data.setVar("MLPREFIX", variant + "-")
66 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-" + variant) 67 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + ":virtclass-" + variant)
67 68
69 # hide multilib variants, this class is not one but this works around recipes thinking it is (due to MLPREFIX).
70 e.data.setVar("MULTILIB_VARIANTS", "")
71
68 # work around for -cross recipes that embed the TARGET_ARCH value 72 # work around for -cross recipes that embed the TARGET_ARCH value
69 if bb.data.inherits_class('cross', e.data): 73 if bb.data.inherits_class('cross', e.data):
70 if initialpn.endswith("-" + d.getVar("ORIG_TARGET_ARCH")): 74 if initialpn.endswith("-" + d.getVar("ORIG_TARGET_ARCH")):