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/conf/bitbake.conf | |
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/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 2954faa5d0..9d1c7690bc 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -98,8 +98,7 @@ SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + bb.data.getVar('SDK_OS', d, 1), ''] | |||
98 | SDK_PREFIX = "${SDK_SYS}-" | 98 | SDK_PREFIX = "${SDK_SYS}-" |
99 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" | 99 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" |
100 | 100 | ||
101 | BASE_PACKAGE_ARCH = "${TUNE_PKGARCH}" | 101 | PACKAGE_ARCH = "${TUNE_PKGARCH}" |
102 | PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" | ||
103 | MACHINE_ARCH = "${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" | 102 | MACHINE_ARCH = "${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" |
104 | PACKAGE_EXTRA_ARCHS ??= "${TARGET_ARCH}" | 103 | PACKAGE_EXTRA_ARCHS ??= "${TARGET_ARCH}" |
105 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" | 104 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" |
@@ -109,8 +108,6 @@ PACKAGE_ARCHS[vardepsexclude] = "MACHINE_ARCH" | |||
109 | 108 | ||
110 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 109 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
111 | MULTIMACH_HOST_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" | 110 | MULTIMACH_HOST_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" |
112 | BASEPKG_HOST_SYS = "${BASE_PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" | ||
113 | BASEPKG_TARGET_SYS = "${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | ||
114 | 111 | ||
115 | # select proper CPU to get binary locales generated | 112 | # select proper CPU to get binary locales generated |
116 | QEMU_OPTIONS = "" | 113 | QEMU_OPTIONS = "" |
@@ -317,7 +314,7 @@ STAGING_DIR = "${TMPDIR}/sysroots" | |||
317 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" | 314 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" |
318 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" | 315 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" |
319 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" | 316 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" |
320 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${BASEPKG_TARGET_SYS}" | 317 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
321 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" | 318 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" |
322 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" | 319 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" |
323 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" | 320 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" |