summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yocto-bsp/conf')
-rw-r--r--meta-yocto-bsp/conf/layer.conf2
-rw-r--r--meta-yocto-bsp/conf/machine/beaglebone-yocto.conf28
-rw-r--r--meta-yocto-bsp/conf/machine/edgerouter.conf26
-rw-r--r--meta-yocto-bsp/conf/machine/genericarm64.conf60
-rw-r--r--meta-yocto-bsp/conf/machine/genericx86-64.conf3
-rw-r--r--meta-yocto-bsp/conf/machine/genericx86.conf3
-rw-r--r--meta-yocto-bsp/conf/machine/include/genericx86-common.inc10
7 files changed, 78 insertions, 54 deletions
diff --git a/meta-yocto-bsp/conf/layer.conf b/meta-yocto-bsp/conf/layer.conf
index bf0c1bfece..60902b4de9 100644
--- a/meta-yocto-bsp/conf/layer.conf
+++ b/meta-yocto-bsp/conf/layer.conf
@@ -9,4 +9,4 @@ BBFILE_COLLECTIONS += "yoctobsp"
9BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" 9BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
10BBFILE_PRIORITY_yoctobsp = "5" 10BBFILE_PRIORITY_yoctobsp = "5"
11LAYERVERSION_yoctobsp = "4" 11LAYERVERSION_yoctobsp = "4"
12LAYERSERIES_COMPAT_yoctobsp = "gatesgarth" 12LAYERSERIES_COMPAT_yoctobsp = "scarthgap"
diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
index f8368ebd0e..459c83f5c2 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
@@ -3,42 +3,38 @@
3#@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards 3#@DESCRIPTION: Reference machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
4 4
5PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" 5PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
6XSERVER ?= "xserver-xorg \
7 xf86-video-modesetting \
8 "
9 6
10MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" 7MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
11 8
12EXTRA_IMAGEDEPENDS += "u-boot" 9EXTRA_IMAGEDEPENDS += "virtual/bootloader"
13 10
14DEFAULTTUNE ?= "cortexa8hf-neon" 11DEFAULTTUNE ?= "cortexa8hf-neon"
15include conf/machine/include/tune-cortexa8.inc 12include conf/machine/include/arm/armv7a/tune-cortexa8.inc
16 13
17IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap" 14IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
18EXTRA_IMAGECMD_jffs2 = "-lnp " 15EXTRA_IMAGECMD:jffs2 = "-lnp "
19WKS_FILE ?= "beaglebone-yocto.wks" 16WKS_FILE ?= "beaglebone-yocto.wks"
20IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" 17MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
21do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot u-boot:do_deploy" 18do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot virtual/bootloader:do_deploy"
22 19
23SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0" 20SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
24SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
25 21
26PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" 22PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
27PREFERRED_VERSION_linux-yocto ?= "5.10%" 23PREFERRED_VERSION_linux-yocto ?= "6.6%"
28 24
29KERNEL_IMAGETYPE = "zImage" 25KERNEL_IMAGETYPE = "zImage"
30KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb" 26DTB_FILES = "am335x-bone.dtb am335x-boneblack.dtb am335x-bonegreen.dtb"
31KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" 27KERNEL_DEVICETREE = '${@' '.join('ti/omap/%s' % d for d in '${DTB_FILES}'.split())}'
28
29PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
32 30
33SPL_BINARY = "MLO" 31SPL_BINARY = "MLO"
34UBOOT_SUFFIX = "img" 32UBOOT_SUFFIX = "img"
35UBOOT_MACHINE = "am335x_evm_defconfig" 33UBOOT_MACHINE = "am335x_evm_defconfig"
36UBOOT_ENTRYPOINT = "0x80008000"
37UBOOT_LOADADDRESS = "0x80008000"
38 34
39MACHINE_FEATURES = "usbgadget usbhost vfat alsa" 35MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
40 36
41IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${KERNEL_DEVICETREE}" 37IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} ${SPL_BINARY} ${KERNEL_IMAGETYPE} ${DTB_FILES}"
42 38
43# support runqemu 39# support runqemu
44EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" 40EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native"
diff --git a/meta-yocto-bsp/conf/machine/edgerouter.conf b/meta-yocto-bsp/conf/machine/edgerouter.conf
deleted file mode 100644
index fbe33be9d1..0000000000
--- a/meta-yocto-bsp/conf/machine/edgerouter.conf
+++ /dev/null
@@ -1,26 +0,0 @@
1#@TYPE: Machine
2#@NAME: Edgerouter
3#@DESCRIPTION: Machine configuration for a generic edgerouter
4
5require conf/machine/include/tune-mips64.inc
6
7MACHINE_FEATURES = "pci ext2 ext3 serial"
8
9KERNEL_IMAGETYPE = "vmlinux"
10KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
11KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment"
12
13PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
14PREFERRED_VERSION_linux-yocto ?= "5.10%"
15
16SERIAL_CONSOLES = "115200;ttyS0"
17USE_VT ?= "0"
18
19MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
20
21IMAGE_FSTYPES ?= "jffs2 tar.bz2 wic wic.bmap"
22JFFS2_ERASEBLOCK = "0x10000"
23
24WKS_FILE ?= "edgerouter.wks"
25IMAGE_BOOT_FILES ?= "vmlinux;vmlinux.64"
26do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-bsp/conf/machine/genericarm64.conf
new file mode 100644
index 0000000000..4fa9395b31
--- /dev/null
+++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
@@ -0,0 +1,60 @@
1#@TYPE: Machine
2#@NAME: genericarm64
3#@DESCRIPTION: Generic Arm64 machine for typical SystemReady IR/ES platforms, which
4#have working firmware and boot via EFI.
5
6require conf/machine/include/arm/arch-armv8a.inc
7
8# Arm Base System Architecture says v8.0+ is allowed, but FEAT_CRC32 is required
9DEFAULTTUNE = "armv8a-crc"
10
11MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi"
12
13KERNEL_IMAGETYPE = "Image"
14PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
15
16# Install all the kernel modules into the rootfs
17MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
18# Install selected pieces of firmware
19MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx linux-firmware-wl18xx linux-firmware-rtl-nic"
20
21# Use an initramfs and populate it with the kernel modules and key firmware
22INITRAMFS_IMAGE ?= "core-image-initramfs-boot"
23PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " ${MACHINE_EXTRA_RRECOMMENDS}"
24
25IMAGE_FSTYPES ?= "wic"
26WKS_FILE ?= "genericarm64.wks.in"
27
28EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
29
30# Try to bring up one physical serial console, or a virtualized serial console
31SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
32
33# Allow u-boot to be built for use with qemu-system-aarch64.
34# This u-boot is _not_ suitable for use with real hardware, and the expectation
35# of this machine is that real hardware comes with the firmware pre-loaded.
36UBOOT_MACHINE = "qemu_arm64_defconfig"
37
38# runqemu configuration to run a genericarm64 image inside a qemu-system-aarch64. You will need
39# to build u-boot explicitly.
40IMAGE_CLASSES += "qemuboot"
41QB_SYSTEM_NAME = "qemu-system-aarch64"
42# Boot the virtual machine with either an emulated Cortex-A76, or the host if using KVM
43QB_MACHINE = "-machine virt"
44QB_CPU = "-cpu cortex-a76"
45QB_CPU_KVM = "-cpu host -machine gic-version=3"
46QB_SMP = "-smp 4"
47# Boot into U-Boot and let that scan the disk for the next step, don't pass any kernel or filesystem hints
48QB_DEFAULT_BIOS = "u-boot.bin"
49QB_DEFAULT_KERNEL = "none"
50QB_DEFAULT_FSTYPE = "wic"
51QB_FSINFO = "wic:no-kernel-in-fs"
52# Mount the wic rootfs as a virtio block device
53QB_ROOTFS_OPT = "-drive id=root,file=@ROOTFS@,if=none,format=raw -device virtio-blk-pci,drive=root"
54# Virtio graphics
55QB_GRAPHICS = "-device virtio-gpu-pci"
56# Virtio serial consoles
57QB_SERIAL_OPT = "-device virtio-serial-pci -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
58QB_TCPSERIAL_OPT = "-device virtio-serial-pci -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1,nodelay=on -device virtconsole,chardev=virtcon"
59# Virtio networking
60QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
diff --git a/meta-yocto-bsp/conf/machine/genericx86-64.conf b/meta-yocto-bsp/conf/machine/genericx86-64.conf
index 81ec24e971..f19a1c1527 100644
--- a/meta-yocto-bsp/conf/machine/genericx86-64.conf
+++ b/meta-yocto-bsp/conf/machine/genericx86-64.conf
@@ -3,9 +3,8 @@
3#@DESCRIPTION: Machine configuration for generic x86_64 (64-bit) PCs and servers. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. 3#@DESCRIPTION: Machine configuration for generic x86_64 (64-bit) PCs and servers. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
4 4
5DEFAULTTUNE ?= "core2-64" 5DEFAULTTUNE ?= "core2-64"
6require conf/machine/include/tune-core2.inc 6require conf/machine/include/x86/tune-core2.inc
7require conf/machine/include/genericx86-common.inc 7require conf/machine/include/genericx86-common.inc
8 8
9SERIAL_CONSOLES_CHECK = "ttyS0"
10#For runqemu 9#For runqemu
11QB_SYSTEM_NAME = "qemu-system-x86_64" 10QB_SYSTEM_NAME = "qemu-system-x86_64"
diff --git a/meta-yocto-bsp/conf/machine/genericx86.conf b/meta-yocto-bsp/conf/machine/genericx86.conf
index 1387bde852..34e1448a8c 100644
--- a/meta-yocto-bsp/conf/machine/genericx86.conf
+++ b/meta-yocto-bsp/conf/machine/genericx86.conf
@@ -3,9 +3,8 @@
3#@DESCRIPTION: Machine configuration for generic x86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware. 3#@DESCRIPTION: Machine configuration for generic x86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
4 4
5DEFAULTTUNE ?= "core2-32" 5DEFAULTTUNE ?= "core2-32"
6require conf/machine/include/tune-core2.inc 6require conf/machine/include/x86/tune-core2.inc
7require conf/machine/include/genericx86-common.inc 7require conf/machine/include/genericx86-common.inc
8 8
9MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "gma500-gfx-check"
10#For runqemu 9#For runqemu
11QB_SYSTEM_NAME = "qemu-system-i386" 10QB_SYSTEM_NAME = "qemu-system-i386"
diff --git a/meta-yocto-bsp/conf/machine/include/genericx86-common.inc b/meta-yocto-bsp/conf/machine/include/genericx86-common.inc
index 1de069011d..50a233dd8f 100644
--- a/meta-yocto-bsp/conf/machine/include/genericx86-common.inc
+++ b/meta-yocto-bsp/conf/machine/include/genericx86-common.inc
@@ -1,8 +1,8 @@
1include conf/machine/include/x86-base.inc 1include conf/machine/include/x86/x86-base.inc
2require conf/machine/include/qemuboot-x86.inc 2require conf/machine/include/x86/qemuboot-x86.inc
3MACHINE_FEATURES += "wifi efi pcbios" 3MACHINE_FEATURES += "wifi efi pcbios"
4 4
5PREFERRED_VERSION_linux-yocto ?= "5.10%" 5PREFERRED_VERSION_linux-yocto ?= "6.6%"
6PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" 6PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
7PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg" 7PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
8XSERVER ?= "${XSERVER_X86_BASE} \ 8XSERVER ?= "${XSERVER_X86_BASE} \
@@ -16,10 +16,6 @@ XSERVER ?= "${XSERVER_X86_BASE} \
16 16
17MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware" 17MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"
18 18
19GLIBC_ADDONS = "nptl"
20
21EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
22
23IMAGE_FSTYPES += "wic wic.bmap" 19IMAGE_FSTYPES += "wic wic.bmap"
24WKS_FILE ?= "genericx86.wks.in" 20WKS_FILE ?= "genericx86.wks.in"
25EFI_PROVIDER ??= "grub-efi" 21EFI_PROVIDER ??= "grub-efi"