[oe-commits] Mike Westerhof : meta-toolchain: Preserve value of PACKAGE_ARCHS
GIT User account
git at amethyst.openembedded.net
Sun Dec 7 00:15:07 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 332c3ff017430b453bf6ff645d3568216a90bad0
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=332c3ff017430b453bf6ff645d3568216a90bad0
Author: Mike Westerhof <mwester at dls.net>
Date: Sat Dec 6 18:12:33 2008 -0600
meta-toolchain: Preserve value of PACKAGE_ARCHS
This fixes build failures caused when building a "be" sdk/toolchain
on a "le" machine, and vice-versa.
---
packages/meta/meta-toolchain.bb | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/packages/meta/meta-toolchain.bb b/packages/meta/meta-toolchain.bb
index 1fa4cdb..2a59ba2 100644
--- a/packages/meta/meta-toolchain.bb
+++ b/packages/meta/meta-toolchain.bb
@@ -2,8 +2,22 @@ DESCRIPTION = "Meta package for building a installable toolchain"
LICENSE = "MIT"
DEPENDS = "opkg-native ipkg-utils-native fakeroot-native sed-native"
+# NOTE: We need to save and restore PACKAGE_ARCHS, because sdk.bbclass
+# will change HOST_ARCH, which can result in SITEINFO_ENDIANESS (which
+# is computed in siteinfo.bbclass) in changing if the original HOST_ARCH
+# endianess differs from the new HOST_ARCH endianess. SITEINFO_ENDIANNESS
+# is used in a number of places, including the construction of the
+# PACKAGE_EXTRA_ARCHS list for machines that are capable of running in
+# either endianess. There may be better ways to fix this.
+
+# Save value of PACKAGE_ARCHS (note the ":=" syntax to force immediate eval)
+REAL_PACKAGE_ARCHS := "${PACKAGE_ARCHS}"
+
inherit sdk meta
+# Restore PACKAGE_ARCHS (sdk.bbclass may have caused it to change)
+PACKAGE_ARCHS := "${REAL_PACKAGE_ARCHS}"
+
SDK_DIR = "${WORKDIR}/sdk"
SDK_OUTPUT = "${SDK_DIR}/image"
SDK_OUTPUT2 = "${SDK_DIR}/image-extras"
More information about the Openembedded-commits
mailing list