summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-17 10:43:38 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-17 10:43:38 +0000
commite0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04 (patch)
tree06bbc12d7d6d04e57b31f8bd2fbbc49327cbbed6 /meta/classes
parentf8385030bbb5e9cb9b6653c77356f2c4794bc81e (diff)
downloadopenembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.gz
openembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.bz2
openembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.xz
openembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.zip
sdk.bbclass: Rewrite PACKAGE_ARCHS
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5532 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sdk.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass
index 766d513ef..af516bdbb 100644
--- a/meta/classes/sdk.bbclass
+++ b/meta/classes/sdk.bbclass
@@ -60,3 +60,13 @@ FILES_${PN}-dbg += "${prefix}/.debug \
"
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
+
+python () {
+ barch = bb.data.getVar('BUILD_ARCH', d, True)
+ archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
+ sdkarchs = []
+ for arch in archs:
+ sdkarchs.append(barch + '-' + arch + '-sdk')
+ bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
+}
+