Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Settings for the GCC(1) cpu-type "core2": |
| 2 | # |
| 3 | # Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3 |
| 4 | # instruction set support. |
| 5 | # |
| 6 | # This tune is recommended for the Intel Core 2 CPU family, including Conroe, |
| 7 | # Merom and beyond, as well as the first Atom CPUs, Diamondville, and beyond. |
| 8 | # |
| 9 | DEFAULTTUNE ?= "core2-32" |
| 10 | |
| 11 | # Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc. |
| 12 | X86ARCH32 ?= "i686" |
| 13 | |
| 14 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS |
| 15 | require conf/machine/include/tune-i586.inc |
| 16 | |
| 17 | # Extra tune features |
| 18 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" |
| 19 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "core2", " -march=core2 -mtune=core2 -msse3 -mfpmath=sse", "", d)}" |
| 20 | |
| 21 | # Extra tune selections |
| 22 | AVAILTUNES += "core2-32" |
| 23 | TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2" |
| 24 | BASE_LIB_tune-core2-32 = "lib" |
| 25 | TUNE_PKGARCH_tune-core2-32 = "core2-32" |
| 26 | PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i586} core2-32" |
| 27 | |
| 28 | AVAILTUNES += "core2-64" |
| 29 | TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2" |
| 30 | BASE_LIB_tune-core2-64 = "lib64" |
| 31 | TUNE_PKGARCH_tune-core2-64 = "core2-64" |
| 32 | PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64" |
| 33 | |
| 34 | AVAILTUNES += "core2-64-x32" |
| 35 | TUNE_FEATURES_tune-core2-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} core2" |
| 36 | BASE_LIB_tune-core2-64-x32 = "libx32" |
| 37 | TUNE_PKGARCH_tune-core2-64-x32 = "core2-64-x32" |
| 38 | PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2-64-x32" |