Skip to content

Enable compressed files in EXTRA_FIRMWARE

Kevin Martin linux-kbuild lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kbuild: Enable decompression for use by EXTRA_FIRMWAREscripts/Makefile.lib+6 -01 reply
2/2firmware_loader: Enable compressed files with EXTRA_FIRMWAREdrivers/base/firmware_loader/Kconfig drivers/base/firmware_loader/builtin/.gitignore drivers/base/firmware_loader/builtin/Makefile+20 -62 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMasahiro Yamada
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Enable compressed files in EXTRA_FIRMWARE

The linux-firmware packages on Gentoo, Fedora, Arch, and others compress the firmware files. This works well with CONFIG_FW_LOADER_COMPRESS, but does not work with CONFIG_EXTRA_FIRMWARE. This patch allows the build system to decompress firmware files specified by CONFIG_EXTRA_FIRMWARE.

PATCH 1/2 adds decompression routines next to the compression routines in scripts/Makefile.lib. That patch is then used by PATCH 2/2 to decompress files before compiling them into the kernel.

The patch works by copying or decompressing the specified firmware files into the build directory, then compiling them in from there. I would prefer to not copy any uncompressed files, but I have not found a clean way to do that.

 drivers/base/firmware_loader/Kconfig            |  5 ++++-
 drivers/base/firmware_loader/builtin/.gitignore |  5 ++++-
 drivers/base/firmware_loader/builtin/Makefile   | 16 ++++++++++++----
 scripts/Makefile.lib                            |  6 ++++++
 4 files changed, 26 insertions(+), 6 deletions(-)
Signature · 1 line
2.41.0