diff options
Diffstat (limited to 'meta/conf/machine/include')
-rw-r--r-- | meta/conf/machine/include/x86/tune-x86-64-v3.inc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/conf/machine/include/x86/tune-x86-64-v3.inc b/meta/conf/machine/include/x86/tune-x86-64-v3.inc new file mode 100644 index 0000000000..267c12ff50 --- /dev/null +++ b/meta/conf/machine/include/x86/tune-x86-64-v3.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | # Settings for the GCC(1) cpu-type "x86-64-v3": | ||
2 | # | ||
3 | # CPUs with AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE. | ||
4 | # (but not AVX512). | ||
5 | # See https://www.phoronix.com/news/GCC-11-x86-64-Feature-Levels for details. | ||
6 | # | ||
7 | # This tune is recommended for Intel Haswell/AMD Excavator CPUs (and later). | ||
8 | # | ||
9 | DEFAULTTUNE ?= "x86-64-v3" | ||
10 | |||
11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
12 | require conf/machine/include/x86/tune-corei7.inc | ||
13 | |||
14 | # Extra tune features | ||
15 | TUNEVALID[x86-64-v3] = "Enable x86-64-v3 specific processor optimizations" | ||
16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'x86-64-v3', ' -march=x86-64-v3', '', d)}" | ||
17 | |||
18 | # Extra tune selections | ||
19 | AVAILTUNES += "x86-64-v3" | ||
20 | TUNE_FEATURES:tune-x86-64-v3 = "${TUNE_FEATURES:tune-x86-64} x86-64-v3" | ||
21 | BASE_LIB:tune-x86-64-v3 = "lib64" | ||
22 | TUNE_PKGARCH:tune-x86-64-v3 = "x86-64-v3" | ||
23 | PACKAGE_EXTRA_ARCHS:tune-x86-64-v3 = "${PACKAGE_EXTRA_ARCHS:tune-corei7-64} x86-64-v3" | ||
24 | |||
25 | AVAILTUNES += "x86-64-v3-x32" | ||
26 | TUNE_FEATURES:tune-x86-64-v3-x32 = "${TUNE_FEATURES:tune-x86-64-x32} x86-64-v3" | ||
27 | BASE_LIB:tune-x86-64-v3-x32 = "libx32" | ||
28 | TUNE_PKGARCH:tune-x86-64-v3-x32 = "x86-64-v3-x32" | ||
29 | PACKAGE_EXTRA_ARCHS:tune-x86-64-v3-x32 = "${PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32} x86-64-v3-x32" | ||