package/linux-firmware: also install into images for early loading support
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 15 Feb 2021 16:05:56 +0000 (17:05 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 23 Feb 2021 12:49:21 +0000 (13:49 +0100)
commitaf49734349ca06f88ed4c17e456fc385ebee2012
treef75ae7823fd0f79b9a70f37699f2be4a51461fcb
parent4cadbbfdb136f54b098d6c83128bf4c0191f80d1
package/linux-firmware: also install into images for early loading support

Some drivers request their firmware very early when built into the kernel,
even before the initramfs is mounted - So the only way to provide firmware
for those drivers is to include them directly in the kernel with the
CONFIG_EXTRA_FIRMWARE option.

An example of this is the uC firmware for modern Intel GPUs.

Conceptually you can point CONFIG_EXTRA_FIRMWARE to
${TARGET_DIR}/lib/firmware, but then you cannot remove the firmware from the
initramfs and pay the size cost twice (inside the kernel + in initramfs), so
instead also install linux-firmware to the images dir, similar to how we do
it for intel-microcode.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/linux-firmware/linux-firmware.mk