]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-extlinux: fix extlinux creation race (take 2)
authorAndré Draszik <adraszik@tycoint.com>
Thu, 21 Sep 2017 11:29:52 +0000 (12:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Sep 2017 13:14:04 +0000 (14:14 +0100)
Alternative solution to original commit
60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux
creation race")

(Untested)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/uboot-extlinux-config.bbclass

index 8447a047ee3d39bd94eebeb758101fda28cadb24..61dff14b7c037dd038cf1384aea774170ac9e6df 100644 (file)
@@ -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