diff options
author | Richard Purdie <richard@openedhand.com> | 2008-10-17 10:43:38 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-10-17 10:43:38 +0000 |
commit | e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04 (patch) | |
tree | 06bbc12d7d6d04e57b31f8bd2fbbc49327cbbed6 | |
parent | f8385030bbb5e9cb9b6653c77356f2c4794bc81e (diff) | |
download | openembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.gz openembedded-core-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.bz2 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
-rw-r--r-- | meta/classes/sdk.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index 766d513efd..af516bdbb7 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) +} + |