mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00

Use the convert-overrides.py to convert to new syntax and manually fix some additional changes. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
# Settings for the GCC(1) cpu-type "skylake":
|
|
#
|
|
# Intel Skylake CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1,
|
|
# SSE4.2, AVX, AVX2 and POPCNT instruction set support.
|
|
#
|
|
# This tune is recommended for Intel Skylake CPU (and beyond).
|
|
#
|
|
DEFAULTTUNE ?= "skylake-64"
|
|
|
|
# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
|
|
require conf/machine/include/tune-corei7.inc
|
|
|
|
# Extra tune features
|
|
TUNEVALID[skylake] = "Enable skylake specific processor optimizations"
|
|
TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'skylake', ' -march=skylake ${SKYLAKE_TUNE} -mfpmath=sse', '', d)}"
|
|
|
|
# Extra tune selections
|
|
|
|
AVAILTUNES += "skylake-64"
|
|
TUNE_FEATURES:tune-skylake-64 = "${TUNE_FEATURES:tune-x86-64} skylake"
|
|
BASE_LIB:tune-skylake-64 = "lib64"
|
|
TUNE_PKGARCH:tune-skylake-64 = "skylake-64"
|
|
PACKAGE_EXTRA_ARCHS:tune-skylake-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} skylake-64"
|
|
QEMU_EXTRAOPTIONS_skylake-64 = " -cpu Skylake-Client"
|
|
|
|
|
|
# Disable QEMU usermode by default (get avx2)
|
|
MACHINE_FEATURES:remove = "qemu-usermode"
|
|
|
|
# If qemu-usermode is enabled, we have to disable avx2 ISA extensions, but we can keep mtune as skylake vs generic
|
|
SKYLAKE_TUNE .= "${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', ' -mtune=skylake ${QEMU_UNAVAILABLE_ISA}', '-mtune=generic -mavx2', d)}"
|
|
|
|
QEMU_UNAVAILABLE_ISA = " \
|
|
-mno-avx \
|
|
-mno-avx2 \
|
|
-mno-avx512f \
|
|
-mno-avx512er \
|
|
-mno-avx512cd \
|
|
-mno-avx512pf \
|
|
-mno-avx512dq \
|
|
-mno-avx512bw \
|
|
-mno-avx512vl \
|
|
-mno-avx512ifma \
|
|
-mno-avx512vbmi \
|
|
-mno-avx512vbmi2 \
|
|
-mno-avx512vnni \
|
|
-mno-avx512bitalg \
|
|
"
|