diff options
Diffstat (limited to 'conf/machine')
-rw-r--r-- | conf/machine/include/intel-common-pkgarch.inc | 15 | ||||
-rw-r--r-- | conf/machine/include/intel-core2-32-common.inc | 7 | ||||
-rw-r--r-- | conf/machine/include/intel-corei7-64-common.inc | 7 | ||||
-rw-r--r-- | conf/machine/include/intel-quark-common.inc | 12 | ||||
-rw-r--r-- | conf/machine/include/meta-intel.inc | 52 | ||||
-rw-r--r-- | conf/machine/include/qemu-intel.inc | 19 | ||||
-rw-r--r-- | conf/machine/include/qemuboot-intel.inc | 19 | ||||
-rw-r--r-- | conf/machine/intel-core2-32.conf | 35 | ||||
-rw-r--r-- | conf/machine/intel-corei7-64.conf | 46 | ||||
-rw-r--r-- | conf/machine/intel-quark.conf | 33 |
10 files changed, 245 insertions, 0 deletions
diff --git a/conf/machine/include/intel-common-pkgarch.inc b/conf/machine/include/intel-common-pkgarch.inc new file mode 100644 index 0000000..d0f208b --- /dev/null +++ b/conf/machine/include/intel-common-pkgarch.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | INTEL_COMMON_PACKAGE_ARCH ?= "${TUNE_PKGARCH}-intel-common" | ||
2 | PACKAGE_ARCH_pn-linux-intel = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
3 | PACKAGE_ARCH_pn-linux-intel-rt = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
4 | PACKAGE_ARCH_pn-linux-intel-tiny = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
5 | PACKAGE_ARCH_pn-linux-intel-dev = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
6 | PACKAGE_ARCH_pn-linux-yocto = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
7 | PACKAGE_ARCH_pn-linux-yocto-rt = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
8 | PACKAGE_ARCH_pn-linux-yocto-tiny = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
9 | PACKAGE_ARCH_pn-linux-yocto-dev = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
10 | PACKAGE_ARCH_pn-intel-microcode = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
11 | PACKAGE_ARCH_pn-backport-iwlwifi = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
12 | PACKAGE_ARCH_pn-ixgbe = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
13 | PACKAGE_ARCH_pn-ixgbevf = "${INTEL_COMMON_PACKAGE_ARCH}" | ||
14 | PACKAGE_EXTRA_ARCHS_append += "${INTEL_COMMON_PACKAGE_ARCH}" | ||
15 | MACHINEOVERRIDES =. "${INTEL_COMMON_PACKAGE_ARCH}:" | ||
diff --git a/conf/machine/include/intel-core2-32-common.inc b/conf/machine/include/intel-core2-32-common.inc new file mode 100644 index 0000000..8c46949 --- /dev/null +++ b/conf/machine/include/intel-core2-32-common.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | # | ||
2 | # Common configuration for all MACHINEs of the intel-core2 type | ||
3 | # | ||
4 | |||
5 | DEFAULTTUNE ?= "core2-32" | ||
6 | require conf/machine/include/tune-core2.inc | ||
7 | require conf/machine/include/x86-base.inc | ||
diff --git a/conf/machine/include/intel-corei7-64-common.inc b/conf/machine/include/intel-corei7-64-common.inc new file mode 100644 index 0000000..0028256 --- /dev/null +++ b/conf/machine/include/intel-corei7-64-common.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | # | ||
2 | # Common configuration for all MACHINES of the intel-corei7-64 type | ||
3 | # | ||
4 | |||
5 | DEFAULTTUNE ?= "corei7-64" | ||
6 | require conf/machine/include/tune-corei7.inc | ||
7 | require conf/machine/include/x86-base.inc | ||
diff --git a/conf/machine/include/intel-quark-common.inc b/conf/machine/include/intel-quark-common.inc new file mode 100644 index 0000000..f7cfe14 --- /dev/null +++ b/conf/machine/include/intel-quark-common.inc | |||
@@ -0,0 +1,12 @@ | |||
1 | # | ||
2 | # Common configuration for all MACHINES of the intel-quark type | ||
3 | # | ||
4 | |||
5 | DEFAULTTUNE ?= "i586-nlp-32" | ||
6 | require conf/machine/include/tune-i586-nlp.inc | ||
7 | require conf/machine/include/x86-base.inc | ||
8 | |||
9 | # gnutls padlock code uses CMOV instruction in assembly which | ||
10 | # is not valid for Quark. | ||
11 | EXTRA_OECONF_append_pn-gnutls_intel-quark = " --disable-padlock" | ||
12 | EXTRA_OECONF_append_pn-openssl_intel-quark = " no-asm" | ||
diff --git a/conf/machine/include/meta-intel.inc b/conf/machine/include/meta-intel.inc new file mode 100644 index 0000000..34a672c --- /dev/null +++ b/conf/machine/include/meta-intel.inc | |||
@@ -0,0 +1,52 @@ | |||
1 | # | ||
2 | # BSP variables and settings specific to the meta-intel layer. | ||
3 | # You must include the meta-intel layer in your bblayers.conf | ||
4 | # to use them. | ||
5 | # | ||
6 | |||
7 | # | ||
8 | # XSERVER subcomponents, used to build the XSERVER variable | ||
9 | # | ||
10 | |||
11 | # Soft set linux-yocto as preferred kernel like x86-base.inc | ||
12 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel" | ||
13 | PREFERRED_PROVIDER_virtual/kernel_poky-tiny ?= "linux-intel" | ||
14 | PREFERRED_PROVIDER_virtual/kernel_linuxstdbase ?= "linux-yocto" | ||
15 | PREFERRED_VERSION_linux-intel ?= "4.9%" | ||
16 | |||
17 | # for Xserver older than 1.13.0 | ||
18 | OLD_XSERVER_X86_EXT = "xserver-xorg-extension-dri \ | ||
19 | xserver-xorg-extension-dri2 \ | ||
20 | xserver-xorg-extension-extmod \ | ||
21 | xserver-xorg-extension-dbe \ | ||
22 | " | ||
23 | |||
24 | XSERVER_X86_MATROX_MGA = "xf86-video-mga \ | ||
25 | " | ||
26 | |||
27 | XSERVER_X86_ASPEED_AST = "xf86-video-ast \ | ||
28 | " | ||
29 | |||
30 | # include the user space intel microcode loading support in the generated images. | ||
31 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS_append = "${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', ' intel-microcode', '', d)} thermald" | ||
32 | |||
33 | # recommended extra packages common to all intel machines | ||
34 | MACHINE_EXTRA_RRECOMMENDS_append = " kernel-modules linux-firmware" | ||
35 | |||
36 | # for the early boot time kernel microcode loading support, | ||
37 | # merge the microcode data in the final initrd image. | ||
38 | INITRD_LIVE_prepend = "${@bb.utils.contains('MACHINE_FEATURES', 'intel-ucode', '${DEPLOY_DIR_IMAGE}/microcode.cpio ', '', d)}" | ||
39 | |||
40 | DISK_SIGNATURE_UUID ??= "deadbeef-dead-beef-dead-beefdeadbeef" | ||
41 | |||
42 | EFI_PROVIDER ?= "rmc-boot" | ||
43 | |||
44 | # Add general MACHINEOVERRIDE for meta-intel | ||
45 | MACHINEOVERRIDES =. "intel-x86-common:" | ||
46 | |||
47 | # Definition of (more or less) suitable virtual machines. | ||
48 | require conf/machine/include/qemuboot-intel.inc | ||
49 | |||
50 | # Ensure that the extra tools needed by qemu are built when building images | ||
51 | # and tweak machine definition to make the result more usable under qemu. | ||
52 | require conf/machine/include/qemu-intel.inc | ||
diff --git a/conf/machine/include/qemu-intel.inc b/conf/machine/include/qemu-intel.inc new file mode 100644 index 0000000..8151040 --- /dev/null +++ b/conf/machine/include/qemu-intel.inc | |||
@@ -0,0 +1,19 @@ | |||
1 | # Similar to meta/conf/machine/include/qemu.inc but influences the | ||
2 | # distro content (in particular the kernel) less than qemu.inc. | ||
3 | |||
4 | # Ensure that qemu gets built when building images. | ||
5 | EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" | ||
6 | |||
7 | # Build ovmf firmware for uefi support in qemu. | ||
8 | EXTRA_IMAGEDEPENDS += "ovmf" | ||
9 | |||
10 | # runqemu uses virtio, so we have to enable the corresponding | ||
11 | # kernel drivers. | ||
12 | KERNEL_FEATURES_INTEL_COMMON += "cfg/virtio.scc" | ||
13 | |||
14 | # Other useful extensions which are not enabled by default: | ||
15 | # rng-tools to take advantage of qemu's virtio-rng-pci device. | ||
16 | # MACHINE_EXTRA_RRECOMMENDS += "rng-tools" | ||
17 | |||
18 | # Creates the necessary .qemuboot.conf file for each image. | ||
19 | IMAGE_CLASSES += "qemuboot" | ||
diff --git a/conf/machine/include/qemuboot-intel.inc b/conf/machine/include/qemuboot-intel.inc new file mode 100644 index 0000000..cb52330 --- /dev/null +++ b/conf/machine/include/qemuboot-intel.inc | |||
@@ -0,0 +1,19 @@ | |||
1 | # For runqemu | ||
2 | IMAGE_CLASSES += "qemuboot" | ||
3 | QB_SYSTEM_NAME_intel-core2-32 = "qemu-system-i386" | ||
4 | QB_CPU_intel-core2-32 = "-cpu coreduo" | ||
5 | QB_CPU_KVM_intel-core2-32 = "-cpu kvm32" | ||
6 | |||
7 | QB_SYSTEM_NAME_intel-corei7-64 = "qemu-system-x86_64" | ||
8 | QB_CPU_intel-corei7-64 = "-cpu Nehalem" | ||
9 | QB_CPU_KVM_intel-corei7-64 = "-cpu kvm64" | ||
10 | |||
11 | QB_SYSTEM_NAME_intel-quark = "qemu-system-i386" | ||
12 | QB_CPU_intel-quark = "-cpu coreduo" | ||
13 | QB_CPU_KVM_intel-quark = "-cpu kvm32" | ||
14 | |||
15 | QB_AUDIO_DRV = "alsa" | ||
16 | QB_AUDIO_OPT = "-soundhw ac97,es1370" | ||
17 | QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=640x480-32 oprofile.timer=1 uvesafb.task_timeout=-1" | ||
18 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy | ||
19 | QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci" | ||
diff --git a/conf/machine/intel-core2-32.conf b/conf/machine/intel-core2-32.conf new file mode 100644 index 0000000..abe6f90 --- /dev/null +++ b/conf/machine/intel-core2-32.conf | |||
@@ -0,0 +1,35 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: intel-core2-32 | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for 32 bit Intel Core 2 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. | ||
5 | |||
6 | require conf/machine/include/meta-intel.inc | ||
7 | require conf/machine/include/intel-core2-32-common.inc | ||
8 | require conf/machine/include/intel-common-pkgarch.inc | ||
9 | |||
10 | MACHINE_FEATURES += "pcbios efi" | ||
11 | MACHINE_FEATURES += "va-impl-intel" | ||
12 | MACHINE_FEATURES += "wifi 3g nfc" | ||
13 | MACHINE_FEATURES += "intel-ucode" | ||
14 | |||
15 | MACHINE_HWCODECS ?= "va-intel gstreamer1.0-vaapi" | ||
16 | |||
17 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "gma500-gfx-check" | ||
18 | |||
19 | XSERVER ?= "${XSERVER_X86_BASE} \ | ||
20 | ${XSERVER_X86_EXT} \ | ||
21 | ${XSERVER_X86_FBDEV} \ | ||
22 | ${XSERVER_X86_I915} \ | ||
23 | ${XSERVER_X86_I965} \ | ||
24 | ${XSERVER_X86_MODESETTING} \ | ||
25 | ${XSERVER_X86_VESA} \ | ||
26 | ${XSERVER_X86_ASPEED_AST} \ | ||
27 | " | ||
28 | |||
29 | SYSLINUX_OPTS = "serial 0 115200" | ||
30 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyPCH0" | ||
31 | APPEND += "rootwait console=ttyS0,115200 console=ttyPCH0,115200 console=tty0" | ||
32 | |||
33 | IMAGE_FSTYPES += "wic" | ||
34 | WKS_FILE ?= "${@bb.utils.contains_any("EFI_PROVIDER", "systemd-boot rmc-boot", "systemd-bootdisk.wks", "mkefidisk.wks", d)}" | ||
35 | do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" | ||
diff --git a/conf/machine/intel-corei7-64.conf b/conf/machine/intel-corei7-64.conf new file mode 100644 index 0000000..78a1f6e --- /dev/null +++ b/conf/machine/intel-corei7-64.conf | |||
@@ -0,0 +1,46 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: intel-corei7-64 | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for 64 bit Intel Core i7 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. | ||
5 | |||
6 | require conf/machine/include/meta-intel.inc | ||
7 | require conf/machine/include/intel-corei7-64-common.inc | ||
8 | require conf/machine/include/intel-common-pkgarch.inc | ||
9 | |||
10 | MACHINE_FEATURES += "pcbios efi" | ||
11 | MACHINE_FEATURES += "va-impl-intel" | ||
12 | MACHINE_FEATURES += "wifi 3g nfc" | ||
13 | MACHINE_FEATURES += "intel-ucode" | ||
14 | |||
15 | MACHINE_HWCODECS ?= "va-intel gstreamer1.0-vaapi" | ||
16 | |||
17 | MACHINE_EXTRA_RRECOMMENDS += "lms8" | ||
18 | |||
19 | # Enable optional dpdk: | ||
20 | COMPATIBLE_MACHINE_pn-dpdk = "intel-corei7-64" | ||
21 | COMPATIBLE_MACHINE_pn-dpdk-dev-libibverbs = "intel-corei7-64" | ||
22 | DPDK_TARGET_MACHINE ?= "atm" | ||
23 | |||
24 | # Enable optional QAT items: | ||
25 | COMPATIBLE_MACHINE_pn-openssl-qat = "intel-corei7-64" | ||
26 | COMPATIBLE_MACHINE_pn-qat16 = "intel-corei7-64" | ||
27 | COMPATIBLE_MACHINE_pn-zlib-qat = "intel-corei7-64" | ||
28 | |||
29 | XSERVER ?= "${XSERVER_X86_BASE} \ | ||
30 | ${XSERVER_X86_EXT} \ | ||
31 | ${XSERVER_X86_FBDEV} \ | ||
32 | ${XSERVER_X86_I915} \ | ||
33 | ${XSERVER_X86_I965} \ | ||
34 | ${XSERVER_X86_MATROX_MGA} \ | ||
35 | ${XSERVER_X86_MODESETTING} \ | ||
36 | ${XSERVER_X86_VESA} \ | ||
37 | ${XSERVER_X86_ASPEED_AST} \ | ||
38 | " | ||
39 | |||
40 | SYSLINUX_OPTS = "serial 0 115200" | ||
41 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyS2" | ||
42 | APPEND += "rootwait console=ttyS0,115200 console=tty0" | ||
43 | |||
44 | IMAGE_FSTYPES += "wic" | ||
45 | WKS_FILE ?= "${@bb.utils.contains_any("EFI_PROVIDER", "systemd-boot rmc-boot", "systemd-bootdisk.wks", "mkefidisk.wks", d)}" | ||
46 | do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" | ||
diff --git a/conf/machine/intel-quark.conf b/conf/machine/intel-quark.conf new file mode 100644 index 0000000..17e8c52 --- /dev/null +++ b/conf/machine/intel-quark.conf | |||
@@ -0,0 +1,33 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: quark | ||
3 | |||
4 | #@DESCRIPTION: Machine configuration for Quark systems | ||
5 | |||
6 | require conf/machine/include/meta-intel.inc | ||
7 | require conf/machine/include/intel-quark-common.inc | ||
8 | require conf/machine/include/intel-common-pkgarch.inc | ||
9 | |||
10 | #Avoid pulling in GRUB | ||
11 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" | ||
12 | |||
13 | MACHINE_FEATURES = "efi usb" | ||
14 | MACHINE_FEATURES += "intel-ucode" | ||
15 | |||
16 | SERIAL_CONSOLE = "115200 ttyS1" | ||
17 | APPEND += "rootwait console=ttyS1,115200 console=tty0" | ||
18 | |||
19 | # Bypass the default labels which also has "install" option in OE. | ||
20 | # | ||
21 | # We don't need to do this when constructing direct-boot image with | ||
22 | # wic. But EFI installer in hddimg image doesn't work on quark now, | ||
23 | # so we only provide a live-boot entry in boot menu for images in | ||
24 | # hddimg format. | ||
25 | |||
26 | LABELS_LIVE = "boot" | ||
27 | |||
28 | # Ensure that the Lock prefix is omitted for the kernel" | ||
29 | KERNEL_EXTRA_ARGS = "EXTRA_CFLAGS=-Wa,-momit-lock-prefix=yes" | ||
30 | |||
31 | IMAGE_FSTYPES += "wic" | ||
32 | WKS_FILE ?= "galileodisk-sd.wks" | ||
33 | do_image_wic[depends] += "gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" | ||