023da85b86416c83caaf8fd537dacbed582e3bea
[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
23 AVAILTUNES += "corei7-64"
24 TUNE_FEATURES_tune-corei7-64 = "${TUNE_FEATURES_tune-x86-64} corei7"
25 BASE_LIB_tune-corei7-64 = "lib64"
26 TUNE_PKGARCH_tune-corei7-64 = "corei7-64"
27 PACKAGE_EXTRA_ARCHS_tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64"
28
29 AVAILTUNES += "corei7-64-x32"
30 TUNE_FEATURES_tune-corei7-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} corei7"
31 BASE_LIB_tune-corei7-64-x32 = "libx32"
32 TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32"
33 PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32"
34
35 TUNE_ARCH = "${@bb.utils.contains('TUNE_FEATURES', 'm64', '${X86ARCH64}', '' ,d)}"
36
37 # Bump qemux86-64 up to corei7
38 AVAILTUNES += "qemux86-64"
39 TUNE_FEATURES_tune-qemux86-64 = "${TUNE_FEATURES_tune-x86-64} corei7"
40 BASE_LIB_tune-qemux86-64 = "lib64"
41 TUNE_PKGARCH_tune-qemux86-64 = "corei7-64"
42 PACKAGE_EXTRA_ARCHS_tune-qemux86-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64"
43
44 # QEMU / runqemu options (partly overrides qemuboot-x86.inc)
45 QB_MACHINE = "-machine q35"
46 QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64"
47 QB_CPU_x86-64 = "-cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
48 QB_CPU_KVM_x86-64 = "-cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt"
49
50 QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=1024x768-32 oprofile.timer=1 uvesafb.task_timeout=-1"
51 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
52 QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci"