diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-03-30 14:27:58 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-04 17:17:54 +0100 |
commit | d6e7ebb20934a4c4822898b4f4adfcde7f7f4049 (patch) | |
tree | 1f79149b8e634975a631a277f281e1099705d981 /meta/conf/machine/include/ia32 | |
parent | 62331ff46bd63067dbcdf672460a9aeda18a6e7e (diff) | |
download | poky-d6e7ebb20934a4c4822898b4f4adfcde7f7f4049.tar.gz |
conf/machine/include: Cleanup IA tunings to match README
We perform a basic cleanup of the IA32 architecture and related
tunings in order to match the rules and descriptions within the
new tuning README file.
A number of small issues were corrected in the "c3" tuning to
bring it inline with the README.
(From OE-Core rev: ab77d3401908964f3249c761969600b5ec1bfbd0)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/ia32')
-rw-r--r-- | meta/conf/machine/include/ia32/README | 24 | ||||
-rw-r--r-- | meta/conf/machine/include/ia32/arch-ia32.inc | 26 |
2 files changed, 38 insertions, 12 deletions
diff --git a/meta/conf/machine/include/ia32/README b/meta/conf/machine/include/ia32/README new file mode 100644 index 0000000000..8f80a5ba94 --- /dev/null +++ b/meta/conf/machine/include/ia32/README | |||
@@ -0,0 +1,24 @@ | |||
1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> | ||
2 | - Initial version | ||
3 | |||
4 | Most of the items for the IA architecture are defined in the single | ||
5 | arch-ia32 file. | ||
6 | |||
7 | Three ABIs are define, m32, mx32 and m64. | ||
8 | |||
9 | The following is the list of ia32 specific variables: | ||
10 | |||
11 | X86ARCH32 - This is the 32-bit architecture GNU canonical arch, TUNE_ARCH. | ||
12 | |||
13 | X86ARCH64 - This is the 64-bit architecture GNU canonical arch, TUNE_ARCH. | ||
14 | |||
15 | The TUNE_PKGARCH is defined as follows: | ||
16 | |||
17 | TUNE_PKGARCH = ${TUNE_PKGARCH_tune-${DEFAULTTUNE}} | ||
18 | |||
19 | The package architecture for 32-bit targets is historical and generally | ||
20 | set to to match the core compatible processor type, i.e. i386. | ||
21 | |||
22 | For 64-bit architectures, the architecture is expected to end in '_64'. | ||
23 | |||
24 | If the x32 ABI is used, then the _64 is further extended with a '_x32'. | ||
diff --git a/meta/conf/machine/include/ia32/arch-ia32.inc b/meta/conf/machine/include/ia32/arch-ia32.inc index 0931c26520..a5dae8811b 100644 --- a/meta/conf/machine/include/ia32/arch-ia32.inc +++ b/meta/conf/machine/include/ia32/arch-ia32.inc | |||
@@ -7,6 +7,8 @@ TARGET_FPU ?= "" | |||
7 | X86ARCH32 ?= "i586" | 7 | X86ARCH32 ?= "i586" |
8 | X86ARCH64 ?= "x86_64" | 8 | X86ARCH64 ?= "x86_64" |
9 | 9 | ||
10 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" | ||
11 | |||
10 | # ELF32 ABI | 12 | # ELF32 ABI |
11 | TUNEVALID[m32] = "IA32 ELF32 standard ABI" | 13 | TUNEVALID[m32] = "IA32 ELF32 standard ABI" |
12 | TUNECONFLICTS[m32] = "m64 mx32" | 14 | TUNECONFLICTS[m32] = "m64 mx32" |
@@ -29,21 +31,21 @@ TUNECONFLICT[m64] = "m32 mx32" | |||
29 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "${X86ARCH64}", "" ,d)}" | 31 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "${X86ARCH64}", "" ,d)}" |
30 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m64", "-m64", "", d)}" | 32 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m64", "-m64", "", d)}" |
31 | 33 | ||
32 | TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86", "x86_64", d)}" | ||
33 | |||
34 | # Default Tune configurations | 34 | # Default Tune configurations |
35 | AVAILTUNES += "x86" | 35 | AVAILTUNES += "x86" |
36 | TUNE_FEATURES_tune-x86 ?= "m32" | 36 | TUNE_FEATURES_tune-x86 = "m32" |
37 | BASE_LIB_tune-x86 ?= "lib" | 37 | BASE_LIB_tune-x86 = "lib" |
38 | PACKAGE_EXTRA_ARCHS_tune-x86 = "x86" | 38 | TUNE_PKGARCH_tune-x86 = "x86" |
39 | PACKAGE_EXTRA_ARCHS_tune-x86 = "${TUNE_PKGARCH_tune-x86}" | ||
39 | 40 | ||
40 | AVAILTUNES += "x86-64" | 41 | AVAILTUNES += "x86-64" |
41 | TUNE_FEATURES_tune-x86-64 ?= "m64" | 42 | TUNE_FEATURES_tune-x86-64 = "m64" |
42 | BASE_LIB_tune-x86-64 ?= "lib64" | 43 | BASE_LIB_tune-x86-64 = "lib64" |
43 | PACKAGE_EXTRA_ARCHS_tune-x86-64 = "x86_64" | 44 | TUNE_PKGARCH_tune-x86-64 = "x86_64" |
45 | PACKAGE_EXTRA_ARCHS_tune-x86-64 = "${TUNE_PKGARCH_tune-x86-64}" | ||
44 | 46 | ||
45 | AVAILTUNES += "x86-64-x32" | 47 | AVAILTUNES += "x86-64-x32" |
46 | TUNE_FEATURES_tune-x86-64-x32 ?= "mx32" | 48 | TUNE_FEATURES_tune-x86-64-x32 = "mx32" |
47 | BASE_LIB_tune-x86-64-x32 ?= "libx32" | 49 | BASE_LIB_tune-x86-64-x32 = "libx32" |
48 | PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "x86_64_x32" | 50 | TUNE_PKGARCH_tune-x86-64-x32 = "x86_64_x32" |
49 | TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "_x32", "", d)}" | 51 | PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "${TUNE_PKGARCH_tune-x86-64-x32}" |