Revert "u-boot: fix extlinux creation race"
PATCH 1/2 Revert "u-boot: fix extlinux creation race"
From: André Draszik <[email protected]>
This reverts commit 60c90398580998b2379bb438f0f75b29285135a5.
This causes circular dependencies when UBOOT_SIGN_ENABLE is active.
These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.
Identifying dependency loops (this may take a short while)...
ERROR:
Dependency loop #1 found:
Task u-boot.bb:do_concat_dtb (dependent Tasks ['kernel.bb:do_assemble_fitimage'])
Task u-boot.bb:do_install (dependent Tasks ['u-boot.bb:do_concat_dtb', 'pseudo_1.8.2.bb:do_populate_sysroot', 'u-boot.bb:do_compile']) Task u-boot.bb:do_deploy (dependent Tasks ['u-boot.bb:do_deploy_dtb', 'u-boot.bb:do_install'])
Task .../recipes-kernel/linux/kernel.bb:do_assemble_fitimage (dependent Tasks ['kernel.bb:do_compile', 'u-boot.bb:do_deploy'])
--- meta/recipes-bsp/u-boot/u-boot.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot.inc +1 -1
@@ -304,4 +304,4 @@ do_deploy () { fi } -addtask deploy before do_build after do_install +addtask deploy before do_build after do_compile
Signature · 1 line
2.14.1
PATCH 2/2 uboot-extlinux: fix extlinux creation race (take 2)
From: André Draszik <[email protected]>
Alternative solution to original commit 60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux creation race")
(Untested)
--- meta/classes/uboot-extlinux-config.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-extlinux-config.bbclass +2 -2
@@ -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 after do_compile
Signature · 1 line
2.14.1
PATCH v2 1/1 uboot-extlinux: fix extlinux creation race (take 2)
From: André Draszik <[email protected]>
Alternative solution to original commit 60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux creation race")
(Untested)
---
v2: also execute before do_deploy
--- meta/classes/uboot-extlinux-config.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-extlinux-config.bbclass +2 -2
@@ -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
Signature · 1 line
2.14.1
Re: [PATCH v2] uboot-extlinux: fix extlinux creation race (take 2)
Hi,
Quoted 7 lines · André Draszik
From: André Draszik <[email protected]>
Alternative solution to original commit
60c90398580998b2379bb438f0f75b29285135a5("u-boot: fix extlinux creation race")(Untested)
I am not in a position to test this patch, but I believe that it should work...
Cheers,
Andre'