From: Artem Novak <artem122novak@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
Artem Novak <artem122novak@gmail.com>
Subject: [PATCH] m68k: add Zstandard-compressed vmlinux target
Date: Wed, 2 Dec 2026 01:32:19 -0600 [thread overview]
Message-ID: <20261202073219.96697-1-artem122novak@gmail.com> (raw)
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
reply other threads:[~2026-12-02 7:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202073219.96697-1-artem122novak@gmail.com \
--to=artem122novak@gmail.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®