diff options
author | Dmitry Baranov <reagentoo@gmail.com> | 2022-06-01 20:21:18 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-30 07:18:18 +0100 |
commit | 08b4f191c9fb064f8564d888e3969a02b0384a32 (patch) | |
tree | b267a76b8c6a1f8d2f0eaa622670297c2cc0d0ae /gen_determineargs.sh | |
parent | Changed firmware and modules requirements to warnings. (diff) | |
download | genkernel-08b4f191c9fb064f8564d888e3969a02b0384a32.tar.gz genkernel-08b4f191c9fb064f8564d888e3969a02b0384a32.tar.bz2 genkernel-08b4f191c9fb064f8564d888e3969a02b0384a32.zip |
firmware: copy only the necessary firmware(s) into initramfs
FIRMWARE=yes behavior is changed:
Only the minimum number of firmware files will be copied.
The list is generated using the `modinfo -F firmware [modules]...` command.
The ability to copy all firmware(s) is also available with a new
ALLFIRMWARE setting (see the modified genkernel.conf for more details).
As for changes in the source code:
gen_moddeps.sh: Significantly redesigned module list generation.
To get a list of modules, use the `mod_dep_list()` function instead
of `gen_dep_list()`. Modules that are not in the kernel (=n or invalid)
will be filtered out. Aliases will be replaced with real names
(including dependencies).
Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
Closes: https://github.com/gentoo/genkernel/pull/40
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'gen_determineargs.sh')
-rwxr-xr-x | gen_determineargs.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh index cefa614..d29ad48 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -445,6 +445,7 @@ determine_real_args() { set_config_with_override BOOL VIRTIO CMD_VIRTIO "no" set_config_with_override BOOL MULTIPATH CMD_MULTIPATH "no" set_config_with_override BOOL FIRMWARE CMD_FIRMWARE "no" + set_config_with_override BOOL ALLFIRMWARE CMD_ALLFIRMWARE "no" set_config_with_override STRING FIRMWARE_DIR CMD_FIRMWARE_DIR "/lib/firmware" set_config_with_override STRING FIRMWARE_FILES CMD_FIRMWARE_FILES set_config_with_override BOOL FIRMWARE_INSTALL CMD_FIRMWARE_INSTALL "no" |