From aafd2f482de6c584a78034b44a705d73f909b207 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 13 Jan 2025 10:49:00 +1100 Subject: [PATCH] rpi-base: filter None values from DTB boot files Filter None values from DTB boot files, to avoid errors expanding IMAGE_BOOT_FILES Signed-off-by: Luke Howard --- conf/machine/include/rpi-base.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index a5fd1a45..d61efffa 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc @@ -146,7 +146,7 @@ def make_dtb_boot_files(d): # destination: bcm2708-rpi-b.dtb return base - return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) + return ' '.join(x for x in (transform(dtb) for dtb in alldtbs.split(' ') if dtb) if x is not None) RPI_EXTRA_IMAGE_BOOT_FILES ?= " \ ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \