summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-03-07 06:42:26 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-08 08:05:44 +0000
commit4b42a93edf3bb661fd7be312b4132292795a7404 (patch)
tree567e1cbf307302973f6e4bf31e448bf95e7cd532
parente1858360af1f11d59154a82679ac903f6d8f04ae (diff)
downloadpoky-4b42a93edf3bb661fd7be312b4132292795a7404.tar.gz
genericarm64: clean up kernel modules and firmware
Don't install _all_ of the firmware, as that's huge (almost 1GB). Instead install a few pieces of firmware for common hardware. Also use the same list of packages to populate the initramfs, so there's no need to manually sync the package lists (as initramfs doesn't install the MACHINE_EXTRA_RRECOMMENDS automatically). (From meta-yocto rev: a5aa914990f36cc5175577983dd1ad1aa0bb81f2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-yocto-bsp/conf/machine/genericarm64.conf14
1 files changed, 8 insertions, 6 deletions
diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-bsp/conf/machine/genericarm64.conf
index 83f1aca137..7c4c76ffe0 100644
--- a/meta-yocto-bsp/conf/machine/genericarm64.conf
+++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
@@ -1,6 +1,6 @@
1#@TYPE: Machine 1#@TYPE: Machine
2#@NAME: genericarm64 2#@NAME: genericarm64
3#@DESCRIPTION: Generic Arm64 machine for typical SystemReady platforms, which 3#@DESCRIPTION: Generic Arm64 machine for typical SystemReady IR/ES platforms, which
4#have working firmware and boot via EFI. 4#have working firmware and boot via EFI.
5 5
6require conf/machine/include/arm/arch-armv8a.inc 6require conf/machine/include/arm/arch-armv8a.inc
@@ -10,15 +10,17 @@ DEFAULTTUNE = "armv8a-crc"
10 10
11MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi" 11MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi"
12 12
13# Install all the kernel modules and all the firmware
14MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"
15
16KERNEL_IMAGETYPE = "Image" 13KERNEL_IMAGETYPE = "Image"
17PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" 14PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
18 15
19# Use an initramfs and populate it with the kernel modules 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
20INITRAMFS_IMAGE ?= "core-image-initramfs-boot" 22INITRAMFS_IMAGE ?= "core-image-initramfs-boot"
21PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " kernel-modules" 23PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " ${MACHINE_EXTRA_RRECOMMENDS}"
22 24
23IMAGE_FSTYPES ?= "wic" 25IMAGE_FSTYPES ?= "wic"
24WKS_FILE ?= "genericarm64.wks.in" 26WKS_FILE ?= "genericarm64.wks.in"