Skip to contentSkip to conversation

uboot-extlinux-config.bbclass: add missing variable dependencies

PATCH New Matt Madison 1 participant 1 message Mar 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uboot-extlinux-config.bbclass: add missing variable dependencies

do_create_extlinux_config performs its own override processing for several variables, so we have to explicitly add the label- suffixed variable names to its vardeps to make sure that changes get detected.

---
 meta/classes/uboot-extlinux-config.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/uboot-extlinux-config.bbclass +2 -0
index c65c421b60..b5b1a81dfc 100644
@@ -148,5 +148,7 @@ python do_create_extlinux_config() {
     except OSError:
         bb.fatal('Unable to open %s' % (cfile))
 }
+UBOOT_EXTLINUX_VARS = "CONSOLE MENU_DESCRIPTION ROOT KERNEL_IMAGE FDTDIR FDT KERNEL_ARGS INITRD"
+do_create_extlinux_config[vardeps] += "${@' '.join(['UBOOT_EXTLINUX_%s_%s' % (v, l) for v in d.getVar('UBOOT_EXTLINUX_VARS').split() for l in d.getVar('UBOOT_EXTLINUX_LABELS').split()])}"
 
 addtask create_extlinux_config before do_install do_deploy after do_compile
Signature · 1 line
2.19.1