Skip to contentSkip to conversation

external-linaro-toolchain: adjust -cross dependency to avoid possible race

PATCH Superseded Denys Dmytriyenko 2 participants 2 messages Sep 9, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 external-linaro-toolchain: adjust -cross dependency to avoid possible race

From: Denys Dmytriyenko <[email protected]>

Many toolchain components like gcc share common work directory with sources and rely on those sources being prepped by a corresponding -cross part. Since we use a prebuilt cross toolchain, we have to fake some prep steps for target toolchain components to build successfully (install unwind.h, etc.). Need to make sure those prep steps get executed before target gcc requires them.

---
 .../recipes-core/meta/external-linaro-toolchain.bbappend              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/meta/external-linaro-toolchain.bbappend +2 -2
index f382897..71ef91e 100644
@@ -4,7 +4,7 @@ ALLOW_EMPTY_ldd = "1"
 ALLOW_EMPTY_libstdc++ = "1"
 ALLOW_EMPTY_libgomp = "1"
 
-PR_append = "-arago21"
+PR_append = "-arago22"
 
 PROVIDES := "${@oe_filter_out('virtual/linux-libc-headers', '${PROVIDES}', d)}"
 PROVIDES := "${@oe_filter_out('linux-libc-headers', '${PROVIDES}', d)}"
@@ -18,7 +18,7 @@ PACKAGES += "${@base_conditional('PREFERRED_PROVIDER_linux-libc-headers', 'exter
 
 DEPENDS += "${@base_conditional('PREFERRED_PROVIDER_linux-libc-headers', 'external-linaro-toolchain', '', 'linux-libc-headers', d)}"
 
-do_build[depends] += "external-linaro-toolchain-cross:do_populate_sysroot"
+do_populate_sysroot[depends] += "external-linaro-toolchain-cross:do_populate_sysroot"
 
 RDEPENDS_${PN}-utils = ""
 
Signature · 1 line
2.2.0
#1 lore raw

Ignore this, I have a better fix.

Quoted 39 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Many toolchain components like gcc share common work directory with sources and rely on those sources being prepped by a corresponding -cross part. Since we use a prebuilt cross toolchain, we have to fake some prep steps for target toolchain components to build successfully (install unwind.h, etc.). Need to make sure those prep steps get executed before target gcc requires them.

---
 .../recipes-core/meta/external-linaro-toolchain.bbappend              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-core/meta/external-linaro-toolchain.bbappend +2 -2
index f382897..71ef91e 100644
@@ -4,7 +4,7 @@ ALLOW_EMPTY_ldd = "1"
 ALLOW_EMPTY_libstdc++ = "1"
 ALLOW_EMPTY_libgomp = "1"
 
-PR_append = "-arago21"
+PR_append = "-arago22"
 
 PROVIDES := "${@oe_filter_out('virtual/linux-libc-headers', '${PROVIDES}', d)}"
 PROVIDES := "${@oe_filter_out('linux-libc-headers', '${PROVIDES}', d)}"
@@ -18,7 +18,7 @@ PACKAGES += "${@base_conditional('PREFERRED_PROVIDER_linux-libc-headers', 'exter
 
 DEPENDS += "${@base_conditional('PREFERRED_PROVIDER_linux-libc-headers', 'external-linaro-toolchain', '', 'linux-libc-headers', d)}"
 
-do_build[depends] += "external-linaro-toolchain-cross:do_populate_sysroot"
+do_populate_sysroot[depends] += "external-linaro-toolchain-cross:do_populate_sysroot"
 
 RDEPENDS_${PN}-utils = ""
 
Signature · 1 line
2.2.0