diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-22 14:15:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:06:30 +0100 |
commit | 039a2d006b7349822509ae612f41e24b12b631a6 (patch) | |
tree | 40131895b574d22118664892ba4968a31534a426 /meta/conf/bitbake.conf | |
parent | dffe253336f4cc1999ad2a2323d346bfa5f22047 (diff) | |
download | poky-039a2d006b7349822509ae612f41e24b12b631a6.tar.gz |
conf/machine/tune: Overhaul tune include file variables
There is currently consideradble confusion over how the tune files operate
and how these interact with the rest of the build system. This update/overhaul
changes things so the tune files are primarily resonsible for setting:
TUNE_ARCH - What was formerly set as TARGET_ARCH and is the value that
represents the architecture we're targetting.
TUNE_PKGARCH - The value that represents the tune confuration that this set
of tune parameters results in.
This allows the significant improvement that the core can now always determine
the target architecture value, even when TARGET_ARCH needs to be reset to
something different and likewise, there is one package architecture variable
the core can reference allowing simplification of the BASE_PACKAGE_ARCH, PACKAGE_ARCH
and FEED_ARCH variables.
(From OE-Core rev: a10de4cf8b424ee95c8e283e75d486be5b3b8eac)
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, 4 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index e768df5f7f..f95343f67a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -81,7 +81,8 @@ HOST_PREFIX = "${TARGET_PREFIX}" | |||
81 | HOST_CC_ARCH = "${TARGET_CC_ARCH}" | 81 | HOST_CC_ARCH = "${TARGET_CC_ARCH}" |
82 | HOST_EXEEXT = "" | 82 | HOST_EXEEXT = "" |
83 | 83 | ||
84 | TARGET_ARCH = "INVALID" | 84 | TUNE_ARCH ??= "INVALID" |
85 | TARGET_ARCH = "${TUNE_ARCH}" | ||
85 | TARGET_OS = "INVALID" | 86 | TARGET_OS = "INVALID" |
86 | TARGET_VENDOR = "-oe" | 87 | TARGET_VENDOR = "-oe" |
87 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}" | 88 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}" |
@@ -95,9 +96,9 @@ SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + bb.data.getVar('SDK_OS', d, 1), ''] | |||
95 | SDK_PREFIX = "${SDK_SYS}-" | 96 | SDK_PREFIX = "${SDK_SYS}-" |
96 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" | 97 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" |
97 | 98 | ||
98 | BASE_PACKAGE_ARCH = "${HOST_ARCH}" | 99 | BASE_PACKAGE_ARCH = "${TUNE_PKGARCH}" |
99 | PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" | 100 | PACKAGE_ARCH = "${BASE_PACKAGE_ARCH}" |
100 | MACHINE_ARCH = "${@[bb.data.getVar('BASE_PACKAGE_ARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" | 101 | MACHINE_ARCH = "${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" |
101 | PACKAGE_EXTRA_ARCHS ??= "${TARGET_ARCH}" | 102 | PACKAGE_EXTRA_ARCHS ??= "${TARGET_ARCH}" |
102 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" | 103 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" |
103 | # MACHINE_ARCH shouldn't be included here as a variable dependency | 104 | # MACHINE_ARCH shouldn't be included here as a variable dependency |