summaryrefslogtreecommitdiffstats
path: root/meta
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
parentf8385030bbb5e9cb9b6653c77356f2c4794bc81e (diff)
downloadpoky-e0c1bd1bd1acdf2fc50312a1a786c2eb42a94e04.tar.gz
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')
-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 766d513efd..af516bdbb7 100644
--- a/meta/classes/sdk.bbclass
+++ b/meta/classes/sdk.bbclass
@@ -60,3 +60,13 @@ FILES_${PN}-dbg += "${prefix}/.debug \
60 " 60 "
61 61
62export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 62export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
63
64python () {
65 barch = bb.data.getVar('BUILD_ARCH', d, True)
66 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
67 sdkarchs = []
68 for arch in archs:
69 sdkarchs.append(barch + '-' + arch + '-sdk')
70 bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
71}
72