blob: f4ba43fbfdbd7c197656a60dd09b42899a6a9251 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# 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#
9DEFAULTTUNE ?= "core2-32"
10
11# Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc.
12X86ARCH32 ?= "i686"
13
14# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
15require conf/machine/include/tune-i586.inc
16
17# Extra tune features
18TUNEVALID[core2] = "Enable core2 specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
21# Extra tune selections
22AVAILTUNES += "core2-32"
23TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2"
24BASE_LIB_tune-core2-32 = "lib"
25TUNE_PKGARCH_tune-core2-32 = "core2-32"
26PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i586} core2-32"
27
28AVAILTUNES += "core2-64"
29TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2"
30BASE_LIB_tune-core2-64 = "lib64"
31TUNE_PKGARCH_tune-core2-64 = "core2-64"
32PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64"
33
34AVAILTUNES += "core2-64-x32"
35TUNE_FEATURES_tune-core2-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} core2"
36BASE_LIB_tune-core2-64-x32 = "libx32"
37TUNE_PKGARCH_tune-core2-64-x32 = "core2-64-x32"
38PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2-64-x32"