Skip to contentSkip to conversation

SDK build related fixes

PATCH New Laurentiu Palcu 1 participant 3 messages Jan 16, 2014

lore
Share & tools
lore
#0 lore raw

cover SDK build related fixes

The following changes since commit cea75f9c8c083d76ad8c45127be332665ef09d06:

ltp: fix makefile race (2014-01-15 17:26:50 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib lpalcu/b5396_issue_switch_sdk_host
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/b5396_issue_switch_sdk_host

Laurentiu Palcu (2):
allarch.bbclass: set SDK_ARCH and SDK_CC_ARCH to "none" nativesdk-packagegroup-sdk-host: reverse inherit order

 meta/classes/allarch.bbclass                       |    2 ++
 .../nativesdk-packagegroup-sdk-host.bb             |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 allarch.bbclass: set SDK_ARCH and SDK_CC_ARCH to "none"

allarch packages shouldn't use these variables.

[YOCTO #5396]

---
 meta/classes/allarch.bbclass |    2 ++
 1 file changed, 2 insertions(+)
meta/classes/allarch.bbclass +2 -0
index 5e13a5b..3ef1e9c 100644
@@ -23,6 +23,8 @@ python () {
         d.setVar("TARGET_LD_ARCH", "none")
         d.setVar("TARGET_AS_ARCH", "none")
         d.setVar("PACKAGE_EXTRA_ARCHS", "")
+        d.setVar("SDK_ARCH", "none")
+        d.setVar("SDK_CC_ARCH", "none")
 
         # No need to do shared library processing or debug symbol handling
         d.setVar("EXCLUDE_FROM_SHLIBS", "1")
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 nativesdk-packagegroup-sdk-host: reverse inherit order

In reply to Laurentiu Palcu

Currently, tow successive toolchain builds for different hosts, will issue a warning:

WARNING: The recipe nativesdk-packagegroup-sdk-host is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/ssd/work/yp1/build/tmp/deploy/ipk/all/nativesdk-packagegroup-sdk-host_1.0-r11_all.ipk Matched in manifest-x86_64-nativesdk-packagegroup-sdk-host.package_write_ipk
Please verify which package should provide the above files.

That's because packagegroup is manually inherited after nativesdk which is usually a BBCLASSEXTEND operation, done last.

[YOCTO #5396]

---
 .../nativesdk-packagegroup-sdk-host.bb             |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +1 -1
index 9581ef3..1065f30 100644
@@ -6,7 +6,7 @@ SUMMARY = "Host packages for the standalone SDK or external toolchain"
 PR = "r11"
 LICENSE = "MIT"
 
-inherit nativesdk packagegroup
+inherit packagegroup nativesdk
 
 PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
 
Signature · 1 line
1.7.9.5