summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-29 13:55:34 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-29 13:55:34 +0000
commit34aa4cad3de49aaf925a70807e9ccedc81d22d07 (patch)
treec2200b6504c5a07c709bfbd01e141017753d36db /meta
parent9ecd2353a3c2bdb0856a9d74cdf3669aab9504bf (diff)
downloadopenembedded-core-34aa4cad3de49aaf925a70807e9ccedc81d22d07.tar.gz
openembedded-core-34aa4cad3de49aaf925a70807e9ccedc81d22d07.tar.bz2
openembedded-core-34aa4cad3de49aaf925a70807e9ccedc81d22d07.tar.xz
openembedded-core-34aa4cad3de49aaf925a70807e9ccedc81d22d07.zip
cross.bbclass: Set PACKAGE_ARCH correctly under inherit cross
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@981 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/cross.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 09357acbe..77afb65d0 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -4,6 +4,10 @@ EXCLUDE_FROM_WORLD = "1"
PACKAGES = ""
+# Save PACKAGE_ARCH before changing HOST_ARCH
+OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
+PACKAGE_ARCH = ${OLD_PACKAGE_ARCH}
+
HOST_ARCH = "${BUILD_ARCH}"
HOST_VENDOR = "${BUILD_VENDOR}"
HOST_OS = "${BUILD_OS}"