mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] m68k: add Zstandard-compressed vmlinux target
@ 2026-12-02  7:32 Artem Novak
  0 siblings, 0 replies; only message in thread
From: Artem Novak @ 2026-12-02  7:32 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linux-m68k, linux-kernel, Artem Novak

Add an optional vmlinux.zst target for building Zstandard-compressed
m68k kernel images.

Follow the existing vmlinux.gz and vmlinux.bz2 targets, including
stripping vmlinux when CONFIG_KGDB is disabled, and add the
generated artifact to CLEAN_FILES.

Signed-off-by: Artem Novak <artem122novak@gmail.com>
---
 arch/m68k/Makefile | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile
index 0abcf994ce55..27086950e7ae 100644
--- a/arch/m68k/Makefile
+++ b/arch/m68k/Makefile
@@ -124,7 +124,18 @@ else
 	$(KBZIP2) -1c vmlinux >vmlinux.bz2
 endif
 
-CLEAN_FILES += vmlinux.gz vmlinux.bz2
+vmlinux.zst: vmlinux
+
+ifndef CONFIG_KGDB
+	cp vmlinux vmlinux.tmp
+	$(STRIP) vmlinux.tmp
+	$(ZSTD) -19 -c vmlinux.tmp >vmlinux.zst
+	rm vmlinux.tmp
+else
+	$(ZSTD) -19 -c vmlinux >vmlinux.zst
+endif
+
+CLEAN_FILES += vmlinux.gz vmlinux.bz2 vmlinux.zst
 
 archheaders:
 	$(Q)$(MAKE) $(build)=arch/m68k/kernel/syscalls all
-- 
2.56.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02  7:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02  7:32 [PATCH] m68k: add Zstandard-compressed vmlinux target Artem Novak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®