summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/x86
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2021-08-16 18:01:42 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-18 17:01:06 +0100
commit1d381f21f5f13aa0c4e1a45683ed656ebeedd37d (patch)
tree457112a9d6561423bab62effe4e46ebc7988dfc2 /meta/conf/machine/include/x86
parentd9878e12b8b78074be1019679ce078940a79c875 (diff)
downloadpoky-1d381f21f5f13aa0c4e1a45683ed656ebeedd37d.tar.gz
conf/machine: move tune files to architecture directories
Move all of the tune files found in conf/machine/include into their respective architecture directories in that same location. All references to these will need to be updated. So, change the relevant ones for this tree in this commit as well. For the ARM tunes, nest them one further into armv8a, armv8m, etc. and rename some to make them uniform with the rest of the tunes. (From OE-Core rev: b6f15209bcfff953cce69da97a93f9ddff141ced) Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include/x86')
-rw-r--r--meta/conf/machine/include/x86/qemuboot-x86.inc14
-rw-r--r--meta/conf/machine/include/x86/tune-atom.inc2
-rw-r--r--meta/conf/machine/include/x86/tune-c3.inc12
-rw-r--r--meta/conf/machine/include/x86/tune-core2.inc38
-rw-r--r--meta/conf/machine/include/x86/tune-corei7.inc38
-rw-r--r--meta/conf/machine/include/x86/tune-i586-nlp.inc19
-rw-r--r--meta/conf/machine/include/x86/tune-i586.inc14
-rw-r--r--meta/conf/machine/include/x86/tune-i686.inc27
-rw-r--r--meta/conf/machine/include/x86/x86-base.inc46
9 files changed, 210 insertions, 0 deletions
diff --git a/meta/conf/machine/include/x86/qemuboot-x86.inc b/meta/conf/machine/include/x86/qemuboot-x86.inc
new file mode 100644
index 0000000000..d3b91070a8
--- /dev/null
+++ b/meta/conf/machine/include/x86/qemuboot-x86.inc
@@ -0,0 +1,14 @@
1# For runqemu
2IMAGE_CLASSES += "qemuboot"
3QB_SMP = "-smp 4"
4QB_CPU:x86 = "-cpu IvyBridge -machine q35"
5QB_CPU_KVM:x86 = "-cpu IvyBridge -machine q35"
6
7QB_CPU:x86-64 = "-cpu IvyBridge -machine q35"
8QB_CPU_KVM:x86-64 = "-cpu IvyBridge -machine q35"
9
10QB_AUDIO_DRV = "alsa"
11QB_AUDIO_OPT = "-soundhw ac97,es1370"
12QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1"
13QB_OPT_APPEND = "-usb -device usb-tablet"
14
diff --git a/meta/conf/machine/include/x86/tune-atom.inc b/meta/conf/machine/include/x86/tune-atom.inc
new file mode 100644
index 0000000000..6b84fffc3f
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-atom.inc
@@ -0,0 +1,2 @@
1# Atom tunings are the same as core2 for now...
2require conf/machine/include/x86/tune-core2.inc
diff --git a/meta/conf/machine/include/x86/tune-c3.inc b/meta/conf/machine/include/x86/tune-c3.inc
new file mode 100644
index 0000000000..afae82541d
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-c3.inc
@@ -0,0 +1,12 @@
1require conf/machine/include/x86/arch-x86.inc
2
3TUNEVALID[c3] = "VIA Cyrix III or VIA C3 specific optimizations"
4TUNECONFLICTS[c3] = "m64 mx32"
5TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'c3', ' -march=c3 -mtune=c3', '', d)}"
6
7AVAILTUNES += "c3"
8TUNE_FEATURES:tune-c3 = "${TUNE_FEATURES:tune-x86} c3"
9BASE_LIBS:tune-c3 = "${BASE_LIB:tune-x86}"
10# The following should likely be something other then i586...
11TUNE_PKGARCH:tune-c3 = "i586"
12PACKAGE_EXTRA_ARCHS:tune-c3 = "${PACKAGE_EXTRA_ARCHS:tune-x86} i386 i486 i586"
diff --git a/meta/conf/machine/include/x86/tune-core2.inc b/meta/conf/machine/include/x86/tune-core2.inc
new file mode 100644
index 0000000000..97b7c1b188
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-core2.inc
@@ -0,0 +1,38 @@
1# Settings for the GCC(1) cpu-type "core2":
2#
3# Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3
4# instruction set support.
5#
6# This tune is recommended for the Intel Core 2 CPU family, including Conroe,
7# Merom and beyond, as well as the first Atom CPUs, Diamondville, and beyond.
8#
9DEFAULTTUNE ?= "core2-32"
10
11# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
12require conf/machine/include/x86/tune-i686.inc
13
14# Extra tune features
15TUNEVALID[core2] = "Enable core2 specific processor optimizations"
16TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}"
17
18# Extra tune selections
19AVAILTUNES += "core2-32"
20TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2"
21BASE_LIB:tune-core2-32 = "lib"
22TUNE_PKGARCH:tune-core2-32 = "core2-32"
23PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32"
24QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270"
25
26AVAILTUNES += "core2-64"
27TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2"
28BASE_LIB:tune-core2-64 = "lib64"
29TUNE_PKGARCH:tune-core2-64 = "core2-64"
30PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64"
31QEMU_EXTRAOPTIONS_core2-64 = " -cpu core2duo"
32
33AVAILTUNES += "core2-64-x32"
34TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2"
35BASE_LIB:tune-core2-64-x32 = "libx32"
36TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32"
38QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu core2duo"
diff --git a/meta/conf/machine/include/x86/tune-corei7.inc b/meta/conf/machine/include/x86/tune-corei7.inc
new file mode 100644
index 0000000000..7798288a74
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-corei7.inc
@@ -0,0 +1,38 @@
1# Settings for the GCC(1) cpu-type "nehalem":
2#
3# Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1,
4# SSE4.2 and POPCNT instruction set support.
5#
6# This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs
7# (and beyond).
8#
9DEFAULTTUNE ?= "corei7-64"
10
11# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
12require conf/machine/include/x86/tune-core2.inc
13
14# Extra tune features
15TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
16TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}"
17
18# Extra tune selections
19AVAILTUNES += "corei7-32"
20TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7"
21BASE_LIB:tune-corei7-32 = "lib"
22TUNE_PKGARCH:tune-corei7-32 = "corei7-32"
23PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32"
24QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
25
26AVAILTUNES += "corei7-64"
27TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
28BASE_LIB:tune-corei7-64 = "lib64"
29TUNE_PKGARCH:tune-corei7-64 = "corei7-64"
30PACKAGE_EXTRA_ARCHS:tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
31QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
32
33AVAILTUNES += "corei7-64-x32"
34TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7"
35BASE_LIB:tune-corei7-64-x32 = "libx32"
36TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32"
38QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"
diff --git a/meta/conf/machine/include/x86/tune-i586-nlp.inc b/meta/conf/machine/include/x86/tune-i586-nlp.inc
new file mode 100644
index 0000000000..ecfbf9f1b2
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-i586-nlp.inc
@@ -0,0 +1,19 @@
1# Settings for the GCC(1) cpu-type "quark":
2#
3#
4#
5DEFAULTTUNE ?= "i586-nlp-32"
6
7# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
8require conf/machine/include/x86/arch-x86.inc
9
10# x86 with no lock prefix
11TUNEVALID[i586-nlp] = "IA32 with Lock Prefix omitted"
12TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i586-nlp', ' -march=i586 -Wa,-momit-lock-prefix=yes', '', d)}"
13
14# Quark tune feature
15AVAILTUNES = "i586-nlp-32"
16TUNE_FEATURES:tune-i586-nlp-32 = "${TUNE_FEATURES:tune-x86} i586-nlp"
17BASE_LIB:tune-i586-nlp-32 = "lib"
18TUNE_PKGARCH:tune-i586-nlp-32 = "i586-nlp-32"
19PACKAGE_EXTRA_ARCHS:tune-i586-nlp-32 = "i586-nlp-32"
diff --git a/meta/conf/machine/include/x86/tune-i586.inc b/meta/conf/machine/include/x86/tune-i586.inc
new file mode 100644
index 0000000000..b1299e9e91
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-i586.inc
@@ -0,0 +1,14 @@
1DEFAULTTUNE ?= "i586"
2
3require conf/machine/include/x86/arch-x86.inc
4
5# Extra tune features
6TUNEVALID[i586] = "Enable i586 specific processor optimizations"
7TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i586', ' -march=i586', '', d)}"
8
9# Extra tune selections
10AVAILTUNES += "i586"
11TUNE_FEATURES:tune-i586 = "${TUNE_FEATURES:tune-x86} i586"
12BASE_LIB:tune-i586 = "lib"
13TUNE_PKGARCH:tune-i586 = "i586"
14PACKAGE_EXTRA_ARCHS:tune-i586 = "${PACKAGE_EXTRA_ARCHS:tune-x86} i586"
diff --git a/meta/conf/machine/include/x86/tune-i686.inc b/meta/conf/machine/include/x86/tune-i686.inc
new file mode 100644
index 0000000000..293d81e6c5
--- /dev/null
+++ b/meta/conf/machine/include/x86/tune-i686.inc
@@ -0,0 +1,27 @@
1#
2# The i686 CPU family was introduced with the Intel Pentium Pro in 1995.
3# It has as required feature flags: fpu tsc cx8 cmov.
4#
5# It is the minimum CPU required by the Debian i386 port.
6# https://lists.debian.org/debian-devel-announce/2016/05/msg00001.html
7#
8#
9
10DEFAULTTUNE ?= "i686"
11
12# Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc.
13X86ARCH32 ?= "i686"
14
15# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
16require conf/machine/include/x86/tune-i586.inc
17
18# Extra tune features
19TUNEVALID[i686] = "Enable i686 specific processor optimizations"
20TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i686', ' -march=i686', '', d)}"
21
22# Extra tune selections
23AVAILTUNES += "i686"
24TUNE_FEATURES:tune-i686 = "${TUNE_FEATURES:tune-x86} i686"
25BASE_LIB:tune-i686 = "lib"
26TUNE_PKGARCH:tune-i686 = "i686"
27PACKAGE_EXTRA_ARCHS:tune-i686 = "${PACKAGE_EXTRA_ARCHS:tune-i586} i686"
diff --git a/meta/conf/machine/include/x86/x86-base.inc b/meta/conf/machine/include/x86/x86-base.inc
new file mode 100644
index 0000000000..958b3490e8
--- /dev/null
+++ b/meta/conf/machine/include/x86/x86-base.inc
@@ -0,0 +1,46 @@
1#
2# Base machine settings for X86 architecture BSPs
3#
4
5#
6# common settings for X86 machines
7#
8MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \
9 acpi serial usbgadget alsa"
10
11IMAGE_FSTYPES ?= "wic"
12
13KERNEL_IMAGETYPE ?= "bzImage"
14
15SERIAL_CONSOLES ?= "115200;ttyS0"
16
17#
18# kernel-related variables
19#
20PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto"
21PREFERRED_VERSION_linux-yocto ??= "5.13%"
22
23#
24# XSERVER subcomponents, used to build the XSERVER variable
25#
26XSERVER_X86_BASE = "xserver-xorg \
27 "
28
29XSERVER_X86_EXT = " \
30 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'xserver-xorg-extension-glx', '', d)} \
31 xserver-xorg-module-libint10 \
32 "
33
34XSERVER_X86_I915 = "xf86-video-intel \
35 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-i915', '', d)} \
36 "
37
38XSERVER_X86_I965 = "xf86-video-intel \
39 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-i965', '', d)} \
40 "
41
42XSERVER_X86_VESA = "xf86-video-vesa"
43
44XSERVER_X86_FBDEV = "xf86-video-fbdev"
45
46XSERVER_X86_MODESETTING = "xf86-video-modesetting"