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