summaryrefslogtreecommitdiffstats
path: root/meta/classes/cross-canadian.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-11 14:44:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-25 14:36:30 +0100
commit5aa96bd0ef51b355d52e0fa1a62bb446d01c3583 (patch)
tree862766d7672934904ac9ac73e70958ffc90aed5a /meta/classes/cross-canadian.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/cross-canadian.bbclass')
-rw-r--r--meta/classes/cross-canadian.bbclass13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index edd51da87b..c878d7f5a5 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -9,15 +9,12 @@
9# or indirectly via dependency. No need to be in 'world'. 9# or indirectly via dependency. No need to be in 'world'.
10EXCLUDE_FROM_WORLD = "1" 10EXCLUDE_FROM_WORLD = "1"
11 11
12STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}:${STAGING_DIR_NATIVE}${bindir_native}/${OLD_BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 12STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}:${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
13 13
14# 14#
15# Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS 15# Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS
16# 16#
17OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}" 17PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
18OLD_MULTIMACH_TARGET_SYS := "${MULTIMACH_TARGET_SYS}"
19OLD_BASE_PACKAGE_ARCH := ${BASE_PACKAGE_ARCH}
20BASE_PACKAGE_ARCH = "${SDK_ARCH}-nativesdk"
21python () { 18python () {
22 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split() 19 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
23 sdkarchs = [] 20 sdkarchs = []
@@ -66,12 +63,12 @@ target_exec_prefix := "${exec_prefix}"
66base_prefix = "${SDKPATHNATIVE}" 63base_prefix = "${SDKPATHNATIVE}"
67prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" 64prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
68exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" 65exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
69bindir = "${exec_prefix}/bin/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 66bindir = "${exec_prefix}/bin/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
70sbindir = "${bindir}" 67sbindir = "${bindir}"
71base_bindir = "${bindir}" 68base_bindir = "${bindir}"
72base_sbindir = "${bindir}" 69base_sbindir = "${bindir}"
73libdir = "${exec_prefix}/lib/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 70libdir = "${exec_prefix}/lib/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
74libexecdir = "${exec_prefix}/libexec/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 71libexecdir = "${exec_prefix}/libexec/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
75 72
76FILES_${PN} = "${prefix}" 73FILES_${PN} = "${prefix}"
77FILES_${PN}-dbg += "${prefix}/.debug \ 74FILES_${PN}-dbg += "${prefix}/.debug \