mirror of
https://git.yoctoproject.org/poky
synced 2026-02-08 01:36:38 +01:00
Core2 has both a 32b and a 64b variant. Currently, core2 implies 32b, while core2_64 is the 64b version. This implicit 32b mode will become confusing in later architectures, such as corei7, where it would be natural for people to assume "corei7" meant 64 bit. Rather than carrying forward an implicit 32b mode and rather than changing the naming scheme part way through the architecture hiearchy, make the 32b and 64b variant explicit in the tune name by changing core2 to core2-32. This patch also standardises on using '-' in the names. (From OE-Core rev: 69e6395b8d11e2940892a6293ecbbe645c2a478b) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Paul Eggleton <paul.eggleton@intel.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Cc: Nitin Kamble <nitin.a.kamble@intel.com> Cc: Mark Hatle <mark.hatle@windriver.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Cc: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.4 KiB
C++
36 lines
1.4 KiB
C++
# Settings for the GCC(1) cpu-type "core2":
|
|
#
|
|
# Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3
|
|
# instruction set support.
|
|
#
|
|
# This tune is recommended for the Intel Core 2 CPU family, including Conroe,
|
|
# Merom and beyond, as well as the first Atom CPUs, Diamondville, and beyond.
|
|
#
|
|
DEFAULTTUNE ?= "core2-32"
|
|
|
|
# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
|
|
require conf/machine/include/tune-i586.inc
|
|
|
|
# Extra tune features
|
|
TUNEVALID[core2] = "Enable core2 specific processor optimizations"
|
|
TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "core2", " -march=core2 -mtune=core2 -msse3 -mfpmath=sse", "", d)}"
|
|
|
|
# Extra tune selections
|
|
AVAILTUNES += "core2-32"
|
|
TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2"
|
|
BASE_LIB_tune-core2-32 = "lib"
|
|
TUNE_PKGARCH_tune-core2-32 = "core2-32"
|
|
PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i586} core2-32"
|
|
|
|
AVAILTUNES += "core2-64"
|
|
TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2"
|
|
BASE_LIB_tune-core2-64 = "lib64"
|
|
TUNE_PKGARCH_tune-core2-64 = "core2-64"
|
|
PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64"
|
|
|
|
AVAILTUNES += "core2-64-x32"
|
|
TUNE_FEATURES_tune-core2-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} core2"
|
|
BASE_LIB_tune-core2-64-x32 = "libx32"
|
|
TUNE_PKGARCH_tune-core2-64-x32 = "core2-64-x32"
|
|
PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2-64-x32"
|