summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/x86/tune-corei7.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/x86/tune-corei7.inc')
-rw-r--r--meta/conf/machine/include/x86/tune-corei7.inc38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/conf/machine/include/x86/tune-corei7.inc b/meta/conf/machine/include/x86/tune-corei7.inc
new file mode 100644
index 0000000000..7798288a74
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-corei7.inc
@@ -0,0 +1,38 @@
1# Settings for the GCC(1) cpu-type "nehalem":
2#
3# Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1,
4# SSE4.2 and POPCNT instruction set support.
5#
6# This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs
7# (and beyond).
8#
9DEFAULTTUNE ?= "corei7-64"
10
11# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
12require conf/machine/include/x86/tune-core2.inc
13
14# Extra tune features
15TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
16TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}"
17
18# Extra tune selections
19AVAILTUNES += "corei7-32"
20TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7"
21BASE_LIB:tune-corei7-32 = "lib"
22TUNE_PKGARCH:tune-corei7-32 = "corei7-32"
23PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32"
24QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
25
26AVAILTUNES += "corei7-64"
27TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
28BASE_LIB:tune-corei7-64 = "lib64"
29TUNE_PKGARCH:tune-corei7-64 = "corei7-64"
30PACKAGE_EXTRA_ARCHS:tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
31QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
32
33AVAILTUNES += "corei7-64-x32"
34TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7"
35BASE_LIB:tune-corei7-64-x32 = "libx32"
36TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32"
38QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"