Convert to new override syntax
[AGL/meta-agl.git] / meta-agl-core / 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
24 AVAILTUNES += "corei7-64"
25 TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
26 BASE_LIB:tune-corei7-64 = "lib64"
27 TUNE_PKGARCH:tune-corei7-64 = "corei7-64"
28 PACKAGE_EXTRA_ARCHS:tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
29 QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
30
31 AVAILTUNES += "corei7-64-x32"
32 TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7"
33 BASE_LIB:tune-corei7-64-x32 = "libx32"
34 TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32"
35 PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32"
36 QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"
37
38 TUNE_ARCH = "${@bb.utils.contains('TUNE_FEATURES', 'm64', '${X86ARCH64}', '' ,d)}"
39
40 # Bump qemux86-64 up to corei7
41 AVAILTUNES += "qemux86-64"
42 TUNE_FEATURES:tune-qemux86-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
43 BASE_LIB:tune-qemux86-64 = "lib64"
44 TUNE_PKGARCH:tune-qemux86-64 = "corei7-64"
45 PACKAGE_EXTRA_ARCHS:tune-qemux86-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
46 QEMU_EXTRAOPTIONS:qemux86-64 = " -cpu Nehalem,check=false"
47
48 # QEMU / runqemu options (partly overrides qemuboot-x86.inc)
49 QB_MACHINE = "-machine q35"
50 QB_SYSTEM_NAME:x86-64 = "qemu-system-x86_64"
51 QB_CPU:x86-64 = "-cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
52 QB_CPU_KVM:x86-64 = "-cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
53
54 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
55 QB_OPT_APPEND = "-vga vmware -show-cursor -usb -device usb-tablet -device virtio-rng-pci"