All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "u-boot: fix extlinux creation race"
@ 2017-09-21 11:25 André Draszik
  2017-09-21 11:25 ` [PATCH 2/2] uboot-extlinux: fix extlinux creation race (take 2) André Draszik
  0 siblings, 1 reply; 4+ messages in thread
From: André Draszik @ 2017-09-21 11:25 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <adraszik@tycoint.com>

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'])

Signed-off-by: André Draszik <adraszik@tycoint.com>
---
 meta/recipes-bsp/u-boot/u-boot.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index aa21c0e556..c2bcf99840 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -304,4 +304,4 @@ do_deploy () {
     fi
 }
 
-addtask deploy before do_build after do_install
+addtask deploy before do_build after do_compile
-- 
2.14.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] uboot-extlinux: fix extlinux creation race (take 2)
  2017-09-21 11:25 [PATCH 1/2] Revert "u-boot: fix extlinux creation race" André Draszik
@ 2017-09-21 11:25 ` André Draszik
  2017-09-21 11:29   ` [PATCH v2] " André Draszik
  0 siblings, 1 reply; 4+ messages in thread
From: André Draszik @ 2017-09-21 11:25 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <adraszik@tycoint.com>

Alternative solution to original commit
60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux
creation race")

(Untested)

Signed-off-by: André Draszik <adraszik@tycoint.com>
---
 meta/classes/uboot-extlinux-config.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/uboot-extlinux-config.bbclass b/meta/classes/uboot-extlinux-config.bbclass
index 8447a047ee..d60f8c6ae2 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 after do_compile
-- 
2.14.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2] uboot-extlinux: fix extlinux creation race (take 2)
  2017-09-21 11:25 ` [PATCH 2/2] uboot-extlinux: fix extlinux creation race (take 2) André Draszik
@ 2017-09-21 11:29   ` André Draszik
  2017-09-21 11:38     ` André Draszik
  0 siblings, 1 reply; 4+ messages in thread
From: André Draszik @ 2017-09-21 11:29 UTC (permalink / raw)
  To: openembedded-core

From: André Draszik <adraszik@tycoint.com>

Alternative solution to original commit
60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux
creation race")

(Untested)

Signed-off-by: André Draszik <adraszik@tycoint.com>

---
v2: also execute before do_deploy
---
 meta/classes/uboot-extlinux-config.bbclass | 4 ++--
 1 file 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}"
 
 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
-- 
2.14.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] uboot-extlinux: fix extlinux creation race (take 2)
  2017-09-21 11:29   ` [PATCH v2] " André Draszik
@ 2017-09-21 11:38     ` André Draszik
  0 siblings, 0 replies; 4+ messages in thread
From: André Draszik @ 2017-09-21 11:38 UTC (permalink / raw)
  To: openembedded-core

Hi,

On Thu, 2017-09-21 at 12:29 +0100, André Draszik wrote:
> From: André Draszik <adraszik@tycoint.com>
> 
> 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'



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-21 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-21 11:25 [PATCH 1/2] Revert "u-boot: fix extlinux creation race" André Draszik
2017-09-21 11:25 ` [PATCH 2/2] uboot-extlinux: fix extlinux creation race (take 2) André Draszik
2017-09-21 11:29   ` [PATCH v2] " André Draszik
2017-09-21 11:38     ` André Draszik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.