summaryrefslogtreecommitdiffstats
path: root/meta/classes/nativesdk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-11 13:44:04 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 13:36:30 (GMT)
commit5aa96bd0ef51b355d52e0fa1a62bb446d01c3583 (patch)
tree862766d7672934904ac9ac73e70958ffc90aed5a /meta/classes/nativesdk.bbclass
parent4cb97ca18cf0dffcb30da01061deb7b72116b90f (diff)
downloadpoky-5aa96bd0ef51b355d52e0fa1a62bb446d01c3583.tar.gz
bitbake.conf/classes: Variable cleanup
This patch removes the variables BASE_PACKAGE_ARCH, BASEPKG_HOST_SYS, BASEPKG_TARGET_SYS and also removes the immediate assignments in several core classes as these are no longer required. This should make it clearer what some of the core variables do and simplfy some overly complex and confusing class code. (From OE-Core rev: d5521be2dcbaf213c140b0d12a4176380874426b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/nativesdk.bbclass')
-rw-r--r--meta/classes/nativesdk.bbclass11
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 3fe4bf9..de7a883 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -5,10 +5,9 @@ EXCLUDE_FROM_WORLD = "1"
5STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}" 5STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
6 6
7# 7#
8# Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS 8# Update PACKAGE_ARCH and PACKAGE_ARCHS
9# 9#
10OLD_PACKAGE_ARCH := ${BASE_PACKAGE_ARCH} 10PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
11BASE_PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
12python () { 11python () {
13 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split() 12 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
14 sdkarchs = [] 13 sdkarchs = []
@@ -17,10 +16,8 @@ python () {
17 bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d) 16 bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
18} 17}
19 18
20#STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-nativesdk" 19STAGING_DIR_HOST = "${STAGING_DIR}/${MULTIMACH_HOST_SYS}"
21#STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}-nativesdk" 20STAGING_DIR_TARGET = "${STAGING_DIR}/${MULTIMACH_TARGET_SYS}"
22STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}"
23STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}"
24 21
25HOST_ARCH = "${SDK_ARCH}" 22HOST_ARCH = "${SDK_ARCH}"
26HOST_VENDOR = "${SDK_VENDOR}" 23HOST_VENDOR = "${SDK_VENDOR}"