From: André Draszik Date: Thu, 21 Sep 2017 11:29:52 +0000 (+0100) Subject: uboot-extlinux: fix extlinux creation race (take 2) X-Git-Tag: 2017-10~92 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e44b72ab45c757cc83c7856c118588f1af299790;p=openembedded-core.git uboot-extlinux: fix extlinux creation race (take 2) Alternative solution to original commit 60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux creation race") (Untested) Signed-off-by: André Draszik Signed-off-by: Ross Burton --- diff --git a/meta/classes/uboot-extlinux-config.bbclass b/meta/classes/uboot-extlinux-config.bbclass index 8447a047ee..61dff14b7c 100644 --- a/meta/classes/uboot-extlinux-config.bbclass +++ b/meta/classes/uboot-extlinux-config.bbclass @@ -68,7 +68,7 @@ UBOOT_EXTLINUX_MENU_DESCRIPTION_linux ??= "${DISTRO_NAME}" UBOOT_EXTLINUX_CONFIG = "${B}/extlinux.conf" -python create_extlinux_config() { +python do_create_extlinux_config() { if d.getVar("UBOOT_EXTLINUX") != "1": return @@ -149,4 +149,4 @@ python create_extlinux_config() { bb.fatal('Unable to open %s' % (cfile)) } -do_install[prefuncs] += "create_extlinux_config" +addtask create_extlinux_config before do_install do_deploy after do_compile