summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2017-09-21 12:29:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-25 14:14:17 +0100
commit6ef40f4d1ed1586dba37ac8e33834c5cf1ea5dc0 (patch)
tree06631744f82ba320e3a625dd73a43ebf495408d7
parentd434e8086ae9d8a9c9a7d40526cc85e3ace799a9 (diff)
downloadpoky-6ef40f4d1ed1586dba37ac8e33834c5cf1ea5dc0.tar.gz
uboot-extlinux: fix extlinux creation race (take 2)
Alternative solution to original commit 60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux creation race") (Untested) (From OE-Core rev: e44b72ab45c757cc83c7856c118588f1af299790) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/uboot-extlinux-config.bbclass4
1 files changed, 2 insertions, 2 deletions
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}"
68 68
69UBOOT_EXTLINUX_CONFIG = "${B}/extlinux.conf" 69UBOOT_EXTLINUX_CONFIG = "${B}/extlinux.conf"
70 70
71python create_extlinux_config() { 71python do_create_extlinux_config() {
72 if d.getVar("UBOOT_EXTLINUX") != "1": 72 if d.getVar("UBOOT_EXTLINUX") != "1":
73 return 73 return
74 74
@@ -149,4 +149,4 @@ python create_extlinux_config() {
149 bb.fatal('Unable to open %s' % (cfile)) 149 bb.fatal('Unable to open %s' % (cfile))
150} 150}
151 151
152do_install[prefuncs] += "create_extlinux_config" 152addtask create_extlinux_config before do_install do_deploy after do_compile