Enhance DEFAULTTUNE mechanism
[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 AGL_DEFAULTTUNE ?= "corei7-64"
7 DEFAULTTUNE:agldefaulttune = "${AGL_DEFAULTTUNE}"
8
9 # shortened copy of tune-corei7.inc due to bug in inclusion for tune-core2.inc
10 # TUNE_ARCH is using .= x86-64 , if done twice, you get x86-64x86-64 as TUNE_ARCH :/
11 # we should have at least the core2 tunings by default (=qemux86-64)
12
13 # Extra tune features
14 TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
15 TUNE_CCARGS = "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2', '', d)}"
16
17 # Extra tune selections
18 AVAILTUNES += "corei7-32"
19 TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7"
20 BASE_LIB:tune-corei7-32 = "lib"
21 TUNE_PKGARCH:tune-corei7-32 = "corei7-32"
22 PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32"
23 QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
24
25 AVAILTUNES += "corei7-64"
26 TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
27 BASE_LIB:tune-corei7-64 = "lib64"
28 TUNE_PKGARCH:tune-corei7-64 = "corei7-64"
29 PACKAGE_EXTRA_ARCHS:tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
30 QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
31
32 AVAILTUNES += "corei7-64-x32"
33 TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7"
34 BASE_LIB:tune-corei7-64-x32 = "libx32"
35 TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32"
36 PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32"
37 QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"
38
39 TUNE_ARCH = "${@bb.utils.contains('TUNE_FEATURES', 'm64', '${X86ARCH64}', '' ,d)}"
40
41 # Bump qemux86-64 up to corei7
42 AVAILTUNES += "qemux86-64"
43 TUNE_FEATURES:tune-qemux86-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
44 BASE_LIB:tune-qemux86-64 = "lib64"
45 TUNE_PKGARCH:tune-qemux86-64 = "corei7-64"
46 PACKAGE_EXTRA_ARCHS:tune-qemux86-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
47 QEMU_EXTRAOPTIONS:qemux86-64 = " -cpu Nehalem,check=false"
48
49 # QEMU / runqemu options (partly overrides qemuboot-x86.inc)
50 QB_MACHINE = "-machine q35"
51 QB_SYSTEM_NAME:x86-64 = "qemu-system-x86_64"
52 QB_CPU:x86-64 = "-cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
53 QB_CPU_KVM:x86-64 = "-cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
54
55 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
56 QB_OPT_APPEND = "-vga vmware -display default,show-cursor=on -usb -device usb-tablet -device virtio-rng-pci"