I have certain modules which I need compiled into the kernel. Some of these modules require firmware, which used to be automatically included from
/usr/src/linux/firmware/. However, no new firmware will be added to this directory, and kernel modules are gradually switching to firmware from
/lib/firmware instead. Each time this happens, it appears I need to add the firmware name to
CONFIG_EXTRA_FIRMWARE in Kconfig.
Is there some way I can automatically collect the list of firmware blobs needed by my compiled-in modules and have them built into the kernel like the
To clarify: I could make a list of all drivers I'm building into the kernel, search their source code for references to firmware blobs, and then set
CONFIG_EXTRA_FIRMWARE to this list of files. But this process would be time consuming and error prone. I want it to happen automatically and reliably.