summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/x86
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/x86')
-rw-r--r--meta/conf/machine/include/x86/README24
-rw-r--r--meta/conf/machine/include/x86/arch-x86.inc51
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 @@
12012/03/30 - Mark Hatle <mark.hatle@windriver.com>
2 - Initial version
3
4Most of the items for the X86 architectures are defined in the single
5arch-x86 file.
6
7Three ABIs are define, m32, mx32 and m64.
8
9The following is the list of X86 specific variables:
10
11X86ARCH32 - This is the 32-bit architecture GNU canonical arch, TUNE_ARCH.
12
13X86ARCH64 - This is the 64-bit architecture GNU canonical arch, TUNE_ARCH.
14
15The TUNE_PKGARCH is defined as follows:
16
17TUNE_PKGARCH = ${TUNE_PKGARCH_tune-${DEFAULTTUNE}}
18
19The package architecture for 32-bit targets is historical and generally
20set to to match the core compatible processor type, i.e. i386.
21
22For 64-bit architectures, the architecture is expected to end in '_64'.
23
24If 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
5DEFAULTTUNE ?= "x86"
6TARGET_FPU ?= ""
7X86ARCH32 ?= "i586"
8X86ARCH64 ?= "x86_64"
9
10TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
11
12# ELF32 ABI
13TUNEVALID[m32] = "IA32 ELF32 standard ABI"
14TUNECONFLICTS[m32] = "m64 mx32"
15TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "${X86ARCH32}", "" ,d)}"
16TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "m32", " -m32", "", d)}"
17MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "m32", "x86:", "" ,d)}"
18
19# x32 ABI
20TUNEVALID[mx32] = "IA32e (x86_64) ELF32 standard ABI"
21TUNECONFLICTS[mx32] = "m64 m32"
22TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "${X86ARCH64}", "" ,d)}"
23ABIEXTENSION .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "x32", "" ,d)}"
24TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", " -mx32", "", d)}"
25TUNE_LDARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-m elf32_x86_64", "", d)}"
26TUNE_ASARGS += "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}"
27
28# ELF64 ABI
29TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI"
30TUNECONFLICTS[m64] = "m32 mx32"
31TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m64", "${X86ARCH64}", "" ,d)}"
32TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "m64", " -m64", "", d)}"
33
34# Default Tune configurations
35AVAILTUNES += "x86"
36TUNE_FEATURES_tune-x86 = "m32"
37BASE_LIB_tune-x86 = "lib"
38TUNE_PKGARCH_tune-x86 = "x86"
39PACKAGE_EXTRA_ARCHS_tune-x86 = "${TUNE_PKGARCH_tune-x86}"
40
41AVAILTUNES += "x86-64"
42TUNE_FEATURES_tune-x86-64 = "m64"
43BASE_LIB_tune-x86-64 = "lib64"
44TUNE_PKGARCH_tune-x86-64 = "x86_64"
45PACKAGE_EXTRA_ARCHS_tune-x86-64 = "${TUNE_PKGARCH_tune-x86-64}"
46
47AVAILTUNES += "x86-64-x32"
48TUNE_FEATURES_tune-x86-64-x32 = "mx32"
49BASE_LIB_tune-x86-64-x32 = "libx32"
50TUNE_PKGARCH_tune-x86-64-x32 = "x86_64_x32"
51PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "${TUNE_PKGARCH_tune-x86-64-x32}"