diff options
author | Ross Burton <ross.burton@arm.com> | 2024-03-07 06:42:26 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-08 08:05:44 +0000 |
commit | 4b42a93edf3bb661fd7be312b4132292795a7404 (patch) | |
tree | 567e1cbf307302973f6e4bf31e448bf95e7cd532 /meta-yocto-bsp/conf/machine | |
parent | e1858360af1f11d59154a82679ac903f6d8f04ae (diff) | |
download | poky-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>
Diffstat (limited to 'meta-yocto-bsp/conf/machine')
-rw-r--r-- | meta-yocto-bsp/conf/machine/genericarm64.conf | 14 |
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 | ||
6 | require conf/machine/include/arm/arch-armv8a.inc | 6 | require conf/machine/include/arm/arch-armv8a.inc |
@@ -10,15 +10,17 @@ DEFAULTTUNE = "armv8a-crc" | |||
10 | 10 | ||
11 | MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi" | 11 | MACHINE_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 | ||
14 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware" | ||
15 | |||
16 | KERNEL_IMAGETYPE = "Image" | 13 | KERNEL_IMAGETYPE = "Image" |
17 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" | 14 | PREFERRED_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 |
17 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" | ||
18 | # Install selected pieces of firmware | ||
19 | MACHINE_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 | ||
20 | INITRAMFS_IMAGE ?= "core-image-initramfs-boot" | 22 | INITRAMFS_IMAGE ?= "core-image-initramfs-boot" |
21 | PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " kernel-modules" | 23 | PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " ${MACHINE_EXTRA_RRECOMMENDS}" |
22 | 24 | ||
23 | IMAGE_FSTYPES ?= "wic" | 25 | IMAGE_FSTYPES ?= "wic" |
24 | WKS_FILE ?= "genericarm64.wks.in" | 26 | WKS_FILE ?= "genericarm64.wks.in" |