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
  2026-12-02 23:38 ` Finn Thain
  2026-12-03 10:15 ` Daniel Palmer
  0 siblings, 2 replies; 6+ messages 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] 6+ messages in thread

end of thread, other threads:[~2026-12-03 22:03 UTC | newest]

Thread overview: 6+ messages (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
2026-12-02 23:38 ` Finn Thain
2026-12-03  6:37   ` Artem Novak
2026-12-03 10:15 ` Daniel Palmer
2026-12-03 10:44   ` Geert Uytterhoeven
2026-12-03 22:02   ` 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®