diff options
| author | Darren Hart <dvhart@linux.intel.com> | 2014-01-17 22:25:36 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:50:53 +0000 |
| commit | 939fec6ffc8f51f4f7f98f908554646b50b1ecaf (patch) | |
| tree | afc34dd2c6a97fa714120deed068ed7cffc1f9d0 /meta/conf/machine/include/x86 | |
| parent | 721773072da08cf0f5e1206961ada3083b6722b4 (diff) | |
| download | poky-939fec6ffc8f51f4f7f98f908554646b50b1ecaf.tar.gz | |
x86: Replace ia32 with x86 when referring to the generic architecture
ia32 implies 32bit, while these files provide descriptions for IA32,
X86_64, and X32 architectures. The term "x86" fits this used better
without resorting to using the term "Intel" which isn't quite right as
it excludes things like the tune-c3 file describing a Via CPU.
(From OE-Core rev: f5e0a574d87b7dc6466bfe01593fab5aa13464ff)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/x86')
| -rw-r--r-- | meta/conf/machine/include/x86/README | 24 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/arch-x86.inc | 51 |
2 files changed, 75 insertions, 0 deletions
diff --git a/meta/conf/machine/include/x86/README b/meta/conf/machine/include/x86/README new file mode 100644 index 0000000000..2b6c46c7eb --- /dev/null +++ b/meta/conf/machine/include/x86/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 X86 architectures are defined in the single | ||
| 5 | arch-x86 file. | ||
| 6 | |||
| 7 | Three ABIs are define, m32, mx32 and m64. | ||
| 8 | |||
| 9 | The following is the list of X86 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/x86/arch-x86.inc b/meta/conf/machine/include/x86/arch-x86.inc new file mode 100644 index 0000000000..298bddc6a1 --- /dev/null +++ b/meta/conf/machine/include/x86/arch-x86.inc | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | # | ||
| 2 | # X86 Architecture definition (IA32, X86_64, and X32) | ||
| 3 | # | ||
| 4 | |||
| 5 | DEFAULTTUNE ?= "x86" | ||
| 6 | TARGET_FPU ?= "" | ||
| 7 | X86ARCH32 ?= "i586" | ||
| 8 | X86ARCH64 ?= "x86_64" | ||
| 9 | |||
| 10 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" | ||
| 11 | |||
| 12 | # ELF32 ABI | ||
| 13 | TUNEVALID[m32] = "IA32 ELF32 standard ABI" | ||
| 14 | TUNECONFLICTS[m32] = "m64 mx32" | ||
| 15 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "${X86ARCH32}", "" ,d)}" | ||
| 16 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "m32", " -m32", "", d)}" | ||
| 17 | MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86:", "" ,d)}" | ||
| 18 | |||
| 19 | # x32 ABI | ||
| 20 | TUNEVALID[mx32] = "IA32e (x86_64) ELF32 standard ABI" | ||
| 21 | TUNECONFLICTS[mx32] = "m64 m32" | ||
| 22 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "${X86ARCH64}", "" ,d)}" | ||
| 23 | ABIEXTENSION .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "x32", "" ,d)}" | ||
| 24 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", " -mx32", "", d)}" | ||
| 25 | TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}" | ||
| 26 | TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}" | ||
| 27 | |||
| 28 | # ELF64 ABI | ||
| 29 | TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI" | ||
| 30 | TUNECONFLICTS[m64] = "m32 mx32" | ||
| 31 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "${X86ARCH64}", "" ,d)}" | ||
| 32 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "m64", " -m64", "", d)}" | ||
| 33 | |||
| 34 | # Default Tune configurations | ||
| 35 | AVAILTUNES += "x86" | ||
| 36 | TUNE_FEATURES_tune-x86 = "m32" | ||
| 37 | BASE_LIB_tune-x86 = "lib" | ||
| 38 | TUNE_PKGARCH_tune-x86 = "x86" | ||
| 39 | PACKAGE_EXTRA_ARCHS_tune-x86 = "${TUNE_PKGARCH_tune-x86}" | ||
| 40 | |||
| 41 | AVAILTUNES += "x86-64" | ||
| 42 | TUNE_FEATURES_tune-x86-64 = "m64" | ||
| 43 | BASE_LIB_tune-x86-64 = "lib64" | ||
| 44 | TUNE_PKGARCH_tune-x86-64 = "x86_64" | ||
| 45 | PACKAGE_EXTRA_ARCHS_tune-x86-64 = "${TUNE_PKGARCH_tune-x86-64}" | ||
| 46 | |||
| 47 | AVAILTUNES += "x86-64-x32" | ||
| 48 | TUNE_FEATURES_tune-x86-64-x32 = "mx32" | ||
| 49 | BASE_LIB_tune-x86-64-x32 = "libx32" | ||
| 50 | TUNE_PKGARCH_tune-x86-64-x32 = "x86_64_x32" | ||
| 51 | PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "${TUNE_PKGARCH_tune-x86-64-x32}" | ||
