diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-11 14:44:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 14:36:30 +0100 |
commit | 5aa96bd0ef51b355d52e0fa1a62bb446d01c3583 (patch) | |
tree | 862766d7672934904ac9ac73e70958ffc90aed5a /meta/classes/cross-canadian.bbclass | |
parent | 4cb97ca18cf0dffcb30da01061deb7b72116b90f (diff) | |
download | poky-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.bbclass | 13 |
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'. |
10 | EXCLUDE_FROM_WORLD = "1" | 10 | EXCLUDE_FROM_WORLD = "1" |
11 | 11 | ||
12 | STAGING_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}" | 12 | STAGING_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 | # |
17 | OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}" | 17 | PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" |
18 | OLD_MULTIMACH_TARGET_SYS := "${MULTIMACH_TARGET_SYS}" | ||
19 | OLD_BASE_PACKAGE_ARCH := ${BASE_PACKAGE_ARCH} | ||
20 | BASE_PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" | ||
21 | python () { | 18 | python () { |
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}" | |||
66 | base_prefix = "${SDKPATHNATIVE}" | 63 | base_prefix = "${SDKPATHNATIVE}" |
67 | prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" | 64 | prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
68 | exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" | 65 | exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
69 | bindir = "${exec_prefix}/bin/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 66 | bindir = "${exec_prefix}/bin/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
70 | sbindir = "${bindir}" | 67 | sbindir = "${bindir}" |
71 | base_bindir = "${bindir}" | 68 | base_bindir = "${bindir}" |
72 | base_sbindir = "${bindir}" | 69 | base_sbindir = "${bindir}" |
73 | libdir = "${exec_prefix}/lib/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 70 | libdir = "${exec_prefix}/lib/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
74 | libexecdir = "${exec_prefix}/libexec/${OLD_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 71 | libexecdir = "${exec_prefix}/libexec/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
75 | 72 | ||
76 | FILES_${PN} = "${prefix}" | 73 | FILES_${PN} = "${prefix}" |
77 | FILES_${PN}-dbg += "${prefix}/.debug \ | 74 | FILES_${PN}-dbg += "${prefix}/.debug \ |