aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
authorEmil Velikov <emil.l.velikov@gmail.com>2023-06-05 14:58:12 +0100
committerJosh Boyer <jwboyer@kernel.org>2023-06-25 12:18:57 -0400
commitee91452dac5abfc4c5b9827cf55e701d8c0ca678 (patch)
tree5866ac612bcfb7f69240bc1bf97d2ed0af0c2f1b /Makefile
parentad2ce8beeeb46bca4246ecb62ac4fe715f097e39 (diff)
Makefile, copy-firmware: support xz/zstd compressed firmware20230625
The kernel has supported compressed firmware for quite some time. So let's add a couple of targets to produce that. In practical terms this means it we'll use ~5x times less space on disk. Reportedly the amd ucode, needs to be uncompressed _within_ the initrd in order to work. Using compressed ucode in late load just works. Ideally this will be addressed by the initrd generators, but considering the files are tiny in size let's skip the compression. v2 - commit message, skip compression for files annotated as Raw v3 - rebase [Drop extra verbose statement in zstd case, Josh Boyer <jwboyer@kernel.org>] Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Josh Boyer <jwboyer@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 83a0ec60..50a4c29b 100644
--- a/Makefile
+++ b/Makefile
@@ -11,3 +11,11 @@ check:
install:
install -d $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
+
+install-xz:
+ install -d $(DESTDIR)$(FIRMWAREDIR)
+ ./copy-firmware.sh --xz $(DESTDIR)$(FIRMWAREDIR)
+
+install-zst:
+ install -d $(DESTDIR)$(FIRMWAREDIR)
+ ./copy-firmware.sh --zstd $(DESTDIR)$(FIRMWAREDIR)