diff options
| author | Jon Mason <jdmason@kudzu.us> | 2021-08-16 18:01:42 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-18 17:01:06 +0100 |
| commit | 1d381f21f5f13aa0c4e1a45683ed656ebeedd37d (patch) | |
| tree | 457112a9d6561423bab62effe4e46ebc7988dfc2 /meta/conf/machine/include/x86 | |
| parent | d9878e12b8b78074be1019679ce078940a79c875 (diff) | |
| download | poky-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.inc | 14 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-atom.inc | 2 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-c3.inc | 12 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-core2.inc | 38 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-corei7.inc | 38 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-i586-nlp.inc | 19 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-i586.inc | 14 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/tune-i686.inc | 27 | ||||
| -rw-r--r-- | meta/conf/machine/include/x86/x86-base.inc | 46 |
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 | ||
| 2 | IMAGE_CLASSES += "qemuboot" | ||
| 3 | QB_SMP = "-smp 4" | ||
| 4 | QB_CPU:x86 = "-cpu IvyBridge -machine q35" | ||
| 5 | QB_CPU_KVM:x86 = "-cpu IvyBridge -machine q35" | ||
| 6 | |||
| 7 | QB_CPU:x86-64 = "-cpu IvyBridge -machine q35" | ||
| 8 | QB_CPU_KVM:x86-64 = "-cpu IvyBridge -machine q35" | ||
| 9 | |||
| 10 | QB_AUDIO_DRV = "alsa" | ||
| 11 | QB_AUDIO_OPT = "-soundhw ac97,es1370" | ||
| 12 | QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1" | ||
| 13 | QB_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... | ||
| 2 | require 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 @@ | |||
| 1 | require conf/machine/include/x86/arch-x86.inc | ||
| 2 | |||
| 3 | TUNEVALID[c3] = "VIA Cyrix III or VIA C3 specific optimizations" | ||
| 4 | TUNECONFLICTS[c3] = "m64 mx32" | ||
| 5 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'c3', ' -march=c3 -mtune=c3', '', d)}" | ||
| 6 | |||
| 7 | AVAILTUNES += "c3" | ||
| 8 | TUNE_FEATURES:tune-c3 = "${TUNE_FEATURES:tune-x86} c3" | ||
| 9 | BASE_LIBS:tune-c3 = "${BASE_LIB:tune-x86}" | ||
| 10 | # The following should likely be something other then i586... | ||
| 11 | TUNE_PKGARCH:tune-c3 = "i586" | ||
| 12 | PACKAGE_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 | # | ||
| 9 | DEFAULTTUNE ?= "core2-32" | ||
| 10 | |||
| 11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
| 12 | require conf/machine/include/x86/tune-i686.inc | ||
| 13 | |||
| 14 | # Extra tune features | ||
| 15 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" | ||
| 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}" | ||
| 17 | |||
| 18 | # Extra tune selections | ||
| 19 | AVAILTUNES += "core2-32" | ||
| 20 | TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2" | ||
| 21 | BASE_LIB:tune-core2-32 = "lib" | ||
| 22 | TUNE_PKGARCH:tune-core2-32 = "core2-32" | ||
| 23 | PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32" | ||
| 24 | QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270" | ||
| 25 | |||
| 26 | AVAILTUNES += "core2-64" | ||
| 27 | TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2" | ||
| 28 | BASE_LIB:tune-core2-64 = "lib64" | ||
| 29 | TUNE_PKGARCH:tune-core2-64 = "core2-64" | ||
| 30 | PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64" | ||
| 31 | QEMU_EXTRAOPTIONS_core2-64 = " -cpu core2duo" | ||
| 32 | |||
| 33 | AVAILTUNES += "core2-64-x32" | ||
| 34 | TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2" | ||
| 35 | BASE_LIB:tune-core2-64-x32 = "libx32" | ||
| 36 | TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32" | ||
| 37 | PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32" | ||
| 38 | QEMU_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 | # | ||
| 9 | DEFAULTTUNE ?= "corei7-64" | ||
| 10 | |||
| 11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
| 12 | require conf/machine/include/x86/tune-core2.inc | ||
| 13 | |||
| 14 | # Extra tune features | ||
| 15 | TUNEVALID[corei7] = "Enable corei7 specific processor optimizations" | ||
| 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}" | ||
| 17 | |||
| 18 | # Extra tune selections | ||
| 19 | AVAILTUNES += "corei7-32" | ||
| 20 | TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7" | ||
| 21 | BASE_LIB:tune-corei7-32 = "lib" | ||
| 22 | TUNE_PKGARCH:tune-corei7-32 = "corei7-32" | ||
| 23 | PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32" | ||
| 24 | QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false" | ||
| 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 | |||
| 33 | AVAILTUNES += "corei7-64-x32" | ||
| 34 | TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7" | ||
| 35 | BASE_LIB:tune-corei7-64-x32 = "libx32" | ||
| 36 | TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32" | ||
| 37 | PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32" | ||
| 38 | QEMU_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 | # | ||
| 5 | DEFAULTTUNE ?= "i586-nlp-32" | ||
| 6 | |||
| 7 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
| 8 | require conf/machine/include/x86/arch-x86.inc | ||
| 9 | |||
| 10 | # x86 with no lock prefix | ||
| 11 | TUNEVALID[i586-nlp] = "IA32 with Lock Prefix omitted" | ||
| 12 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i586-nlp', ' -march=i586 -Wa,-momit-lock-prefix=yes', '', d)}" | ||
| 13 | |||
| 14 | # Quark tune feature | ||
| 15 | AVAILTUNES = "i586-nlp-32" | ||
| 16 | TUNE_FEATURES:tune-i586-nlp-32 = "${TUNE_FEATURES:tune-x86} i586-nlp" | ||
| 17 | BASE_LIB:tune-i586-nlp-32 = "lib" | ||
| 18 | TUNE_PKGARCH:tune-i586-nlp-32 = "i586-nlp-32" | ||
| 19 | PACKAGE_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 @@ | |||
| 1 | DEFAULTTUNE ?= "i586" | ||
| 2 | |||
| 3 | require conf/machine/include/x86/arch-x86.inc | ||
| 4 | |||
| 5 | # Extra tune features | ||
| 6 | TUNEVALID[i586] = "Enable i586 specific processor optimizations" | ||
| 7 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i586', ' -march=i586', '', d)}" | ||
| 8 | |||
| 9 | # Extra tune selections | ||
| 10 | AVAILTUNES += "i586" | ||
| 11 | TUNE_FEATURES:tune-i586 = "${TUNE_FEATURES:tune-x86} i586" | ||
| 12 | BASE_LIB:tune-i586 = "lib" | ||
| 13 | TUNE_PKGARCH:tune-i586 = "i586" | ||
| 14 | PACKAGE_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 | |||
| 10 | DEFAULTTUNE ?= "i686" | ||
| 11 | |||
| 12 | # Set x86 target arch to i686, so that glibc enables SSE optimised memcpy, etc. | ||
| 13 | X86ARCH32 ?= "i686" | ||
| 14 | |||
| 15 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS | ||
| 16 | require conf/machine/include/x86/tune-i586.inc | ||
| 17 | |||
| 18 | # Extra tune features | ||
| 19 | TUNEVALID[i686] = "Enable i686 specific processor optimizations" | ||
| 20 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'i686', ' -march=i686', '', d)}" | ||
| 21 | |||
| 22 | # Extra tune selections | ||
| 23 | AVAILTUNES += "i686" | ||
| 24 | TUNE_FEATURES:tune-i686 = "${TUNE_FEATURES:tune-x86} i686" | ||
| 25 | BASE_LIB:tune-i686 = "lib" | ||
| 26 | TUNE_PKGARCH:tune-i686 = "i686" | ||
| 27 | PACKAGE_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 | # | ||
| 8 | MACHINE_FEATURES += "screen keyboard pci usbhost ext2 ext3 x86 \ | ||
| 9 | acpi serial usbgadget alsa" | ||
| 10 | |||
| 11 | IMAGE_FSTYPES ?= "wic" | ||
| 12 | |||
| 13 | KERNEL_IMAGETYPE ?= "bzImage" | ||
| 14 | |||
| 15 | SERIAL_CONSOLES ?= "115200;ttyS0" | ||
| 16 | |||
| 17 | # | ||
| 18 | # kernel-related variables | ||
| 19 | # | ||
| 20 | PREFERRED_PROVIDER_virtual/kernel ??= "linux-yocto" | ||
| 21 | PREFERRED_VERSION_linux-yocto ??= "5.13%" | ||
| 22 | |||
| 23 | # | ||
| 24 | # XSERVER subcomponents, used to build the XSERVER variable | ||
| 25 | # | ||
| 26 | XSERVER_X86_BASE = "xserver-xorg \ | ||
| 27 | " | ||
| 28 | |||
| 29 | XSERVER_X86_EXT = " \ | ||
| 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'xserver-xorg-extension-glx', '', d)} \ | ||
| 31 | xserver-xorg-module-libint10 \ | ||
| 32 | " | ||
| 33 | |||
| 34 | XSERVER_X86_I915 = "xf86-video-intel \ | ||
| 35 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-i915', '', d)} \ | ||
| 36 | " | ||
| 37 | |||
| 38 | XSERVER_X86_I965 = "xf86-video-intel \ | ||
| 39 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-i965', '', d)} \ | ||
| 40 | " | ||
| 41 | |||
| 42 | XSERVER_X86_VESA = "xf86-video-vesa" | ||
| 43 | |||
| 44 | XSERVER_X86_FBDEV = "xf86-video-fbdev" | ||
| 45 | |||
| 46 | XSERVER_X86_MODESETTING = "xf86-video-modesetting" | ||
