x86_64-tune: fix KVM qemu options
[AGL/meta-agl.git] / meta-agl-distro / conf / distro / include / x86_64-tune.inc
1 # DEFAULTTUNE overrides for AGL on x86-64
2
3 # We should not need the tuning include below as the BSP should include the right set already.
4 # A double inclusion would produce a warning. This include line is just for reference
5 #include conf/machine/include/tune-corei7.inc
6 DEFAULTTUNE = "corei7-64"
7
8 # shortened copy of tune-corei7.inc due to bug in inclusion for tune-core2.inc
9 # TUNE_ARCH is using .= x86-64 , if done twice, you get x86-64x86-64 as TUNE_ARCH :/
10 # we should have at least the core2 tunings by default (=qemux86-64)
11
12 # Extra tune features
13 TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
14 TUNE_CCARGS = "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2', '', d)}"
15
16 # Extra tune selections
17 AVAILTUNES += "corei7-32"
18 TUNE_FEATURES_tune-corei7-32 = "${TUNE_FEATURES_tune-x86} corei7"
19 BASE_LIB_tune-corei7-32 = "lib"
20 TUNE_PKGARCH_tune-corei7-32 = "corei7-32"
21 PACKAGE_EXTRA_ARCHS_tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-32} corei7-32"
22 QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
23 QB_CPU_corei7-32 = "-cpu Nehalem,check=false"
24 QB_MACHINE_corei7-32 = "-machine q35"
25
26 AVAILTUNES += "corei7-64"
27 TUNE_FEATURES_tune-corei7-64 = "${TUNE_FEATURES_tune-x86-64} corei7"
28 BASE_LIB_tune-corei7-64 = "lib64"
29 TUNE_PKGARCH_tune-corei7-64 = "corei7-64"
30 PACKAGE_EXTRA_ARCHS_tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64"
31 QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
32 QB_CPU_corei7-64 = " -cpu Nehalem,check=false"
33 QB_MACHINE_corei7-64 = "-machine q35"
34
35 AVAILTUNES += "corei7-64-x32"
36 TUNE_FEATURES_tune-corei7-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} corei7"
37 BASE_LIB_tune-corei7-64-x32 = "libx32"
38 TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32"
39 PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32"
40 QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"
41 QB_CPU_corei7-64-x32 = "-cpu Nehalem,check=false"
42 QB_MACHINE_corei7-64-x32 = "-machine q35"
43
44 TUNE_ARCH = "${@bb.utils.contains('TUNE_FEATURES', 'm64', '${X86ARCH64}', '' ,d)}"
45
46 # Bump qemux86-64 up to corei7
47 AVAILTUNES += "qemux86-64"
48 TUNE_FEATURES_tune-qemux86-64 = "${TUNE_FEATURES_tune-x86-64} corei7"
49 BASE_LIB_tune-qemux86-64 = "lib64"
50 TUNE_PKGARCH_tune-qemux86-64 = "corei7-64"
51 PACKAGE_EXTRA_ARCHS_tune-qemux86-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64"
52 QEMU_EXTRAOPTIONS_qemux86-64 = " -cpu Nehalem,check=false"
53 QB_CPU_qemux86-64 = " -cpu Nehalem,check=false"
54 QB_CPU_KVM_x86 = "-cpu Nehalem,check=false"
55 QB_CPU_KVM_x86-64 = "-cpu Nehalem,check=false"
56 QB_MACHINE_qemux86-64 = "-machine q35"