diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-08-20 09:37:34 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-08-20 09:46:10 -0600 |
commit | 78386b07ac9c53a35ee14156076376381b98ec4c (patch) | |
tree | bf048cb40868fa1e5484213a7bca0e9ed3771a3f | |
parent | d9d1860dcd94a03ce3398cbd6fc7a71847204b18 (diff) | |
download | meta-xilinx-78386b07ac9c53a35ee14156076376381b98ec4c.tar.gz |
qemu-xilinx-system-native: Rework pmu-rom dependency
The previous implementation did not follow the recommended usage of
bb.utils.contains. Additionally we need to exclude the LICENSE_FLAGS_ACCEPTED
variable, otherwise unrelated items will affect our recipe hash.
This can cause problems with an eSDK where a user may enable or disable
unrelated commercial or other licensed software.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend index 91b223b9..7c152d60 100644 --- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend | |||
@@ -1,2 +1,5 @@ | |||
1 | # Automatically enable pmu-rom-native for ZynqMP support, or warn the user | 1 | # Automatically enable pmu-rom-native for ZynqMP support |
2 | DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in (d.getVar('LICENSE_FLAGS_ACCEPTED') or '').split() else ''}" | 2 | PMU_ROM_DEP[vardepsexclude] = "LICENSE_FLAGS_ACCEPTED" |
3 | PMU_ROM_DEP = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "xilinx", " pmu-rom-native", "", d)}" | ||
4 | |||
5 | DEPENDS .= "${PMU_ROM_DEP}" | ||