From fe4b15d97e0b5ce73cd3186ac3e380df07c9d1ca Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Thu, 18 May 2023 11:59:00 -0600 Subject: [PATCH] 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 ", line 1, in 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 --- .../recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0444dbabc..91b223b9c 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 @@ # Automatically enable pmu-rom-native for ZynqMP support, or warn the user -DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in d.getVar('LICENSE_FLAGS_ACCEPTED').split() else ''}" +DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in (d.getVar('LICENSE_FLAGS_ACCEPTED') or '').split() else ''}"