summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-05-18 12:03:24 -0600
committerMark Hatle <mark.hatle@amd.com>2023-05-24 17:32:01 -0500
commitd80a2ecf0a485a375adbd8861a33f5ce85d1a49b (patch)
tree892b44ebab86fd69d0a6c255f5c2c00f6a30dcfd
parent7d8beda9a5f4e0db9e9d7046f4f3cbd298c95e55 (diff)
downloadmeta-xilinx-d80a2ecf0a485a375adbd8861a33f5ce85d1a49b.tar.gz
qemu-xilinx-system-native: Fix license check when empty LICENSE_FLAGS_ACCEPTED
Fix an issue that results in: Traceback (most recent call last): File "Var <DEPENDS>", line 1, in <module> bb.data_smart.ExpansionError: Failure expanding variable DEPENDS, expression was pkgconfig-native glib-2.0-native zlib-native ninja-native meson-native pixman-native qemu-xilinx-native bison-native ninja-native meson-native qemu-xilinx-multiarch-helper-native${@' pmu-rom-native' if 'xilinx' in d.getVar('LICENSE_FLAGS_ACCEPTED').split() else ''} alsa-lib-native dtc-native libgcrypt-native libslirp-native which triggered exception AttributeError: 'NoneType' object has no attribute 'split' The variable dependency chain for the failure is: DEPENDS This only occurs if no LICENSE_FLAGS_ACCEPTED is defined. This should not be a blocking error. Instead the user is warned of reduced functionality and we continue the build. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend2
1 files changed, 1 insertions, 1 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 0444dbab..91b223b9 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,2 @@
1# Automatically enable pmu-rom-native for ZynqMP support, or warn the user 1# Automatically enable pmu-rom-native for ZynqMP support, or warn the user
2DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in d.getVar('LICENSE_FLAGS_ACCEPTED').split() else ''}" 2DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in (d.getVar('LICENSE_FLAGS_ACCEPTED') or '').split() else ''}"