diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-26 18:51:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-26 22:39:59 +0100 |
commit | 860a41bae6b863a289b06a9684d9cf6c58a307bd (patch) | |
tree | 3431cc2ef4a9511907a8bc0e63a65375ad387131 /meta/conf/machine | |
parent | 49c01a89b5183798f4bfa9079d68811dd40ca82d (diff) | |
download | poky-860a41bae6b863a289b06a9684d9cf6c58a307bd.tar.gz |
arch-ia32.inc: Fix up TUNE_ARCH variable conflicts
The current approach causes duplicate values to appear in the TUNE_ARCH
field and this patch addresses that.
(From OE-Core rev: 02031d766f983cd7e01e468cb2c926604313cd2a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r-- | meta/conf/machine/include/ia32/arch-ia32.inc | 6 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-core2.inc | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/meta/conf/machine/include/ia32/arch-ia32.inc b/meta/conf/machine/include/ia32/arch-ia32.inc index d1d66052a1..2709440db3 100644 --- a/meta/conf/machine/include/ia32/arch-ia32.inc +++ b/meta/conf/machine/include/ia32/arch-ia32.inc | |||
@@ -4,17 +4,19 @@ | |||
4 | 4 | ||
5 | DEFAULTTUNE ?= "x86" | 5 | DEFAULTTUNE ?= "x86" |
6 | TARGET_FPU ?= "" | 6 | TARGET_FPU ?= "" |
7 | X86ARCH32 ?= "i586" | ||
8 | X86ARCH64 ?= "x86_64" | ||
7 | 9 | ||
8 | # ELF32 ABI | 10 | # ELF32 ABI |
9 | TUNEVALID[m32] = "IA32 ELF32 standard ABI" | 11 | TUNEVALID[m32] = "IA32 ELF32 standard ABI" |
10 | TUNECONFLICTS[m32] = "m64" | 12 | TUNECONFLICTS[m32] = "m64" |
11 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "i586", "" ,d)}" | 13 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "${X86ARCH32}", "" ,d)}" |
12 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}" | 14 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}" |
13 | 15 | ||
14 | # ELF64 ABI | 16 | # ELF64 ABI |
15 | TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI" | 17 | TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI" |
16 | TUNECONFLICT[m64] = "m32" | 18 | TUNECONFLICT[m64] = "m32" |
17 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "x86_64", "" ,d)}" | 19 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "${X86ARCH64}", "" ,d)}" |
18 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m64", "-m64", "", d)}" | 20 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m64", "-m64", "", d)}" |
19 | 21 | ||
20 | TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86", "x86_64", d)}" | 22 | TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86", "x86_64", d)}" |
diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc index 138ca170d0..874af8baa8 100644 --- a/meta/conf/machine/include/tune-core2.inc +++ b/meta/conf/machine/include/tune-core2.inc | |||
@@ -1,5 +1,5 @@ | |||
1 | DEFAULTTUNE ?= "core2" | 1 | DEFAULTTUNE ?= "core2" |
2 | TUNE_ARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "i686", "x86_64", d)}" | 2 | X86ARCH32 ?= "i686" |
3 | TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "core2", "core2-64", d)}" | 3 | TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "core2", "core2-64", d)}" |
4 | 4 | ||
5 | require conf/machine/include/tune-i586.inc | 5 | require conf/machine/include/tune-i586.inc |