From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Daniel Palmer <daniel@0x0f.com>
Cc: geert@linux-m68k.org, linux-m68k@lists.linux-m68k.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] m68k: Add target for lz4 compressed vmlinux
Date: Sat, 9 Aug 2025 14:29:09 +0200 [thread overview]
Message-ID: <d7974cbe-41b3-4994-8982-30c8f660e65f@t-8ch.de> (raw)
In-Reply-To: <CAFr9PXmF-AOL8yj9FntHw+b1A8HWKNeAHU=rx7Dk7pfi1N_4fA@mail.gmail.com>
Hi Daniel,
On 2025-08-09 20:35:39+0900, Daniel Palmer wrote:
> On Sat, 9 Aug 2025 at 16:50, Thomas Weißschuh <linux@weissschuh.net> wrote:
> > Splitting the vmlinux.tmp creation into a dedicated target would make
> > all the compressor targets simpler. It will need a bit more disk space,
> > but there are a bunch of vmlinux copies already in any case.
> >
>
> That's true. I think a target for vmlinux.stripped and then use that
> in the compressed image targets.
>
> How about this?:
>
> vmlinux.stripped: vmlinux
> cp $< $@
> $(STRIP) $@
>
> vmlinux.gz: vmlinux.stripped
>
> ifndef CONFIG_KGDB
> $(KGZIP) -9c vmlinux.stripped >vmlinux.gz
> else
> $(KGZIP) -9c vmlinux >vmlinux.gz
> endif
>
> <snip>
I would continue with vmlinux.tmp. It might not actually be stripped.
quiet_cmd_precompress = PRECOMPRESS $@
ifndef CONFIG_KGDB
cmd_precompress = cp $< $@
else
cmd_precompress = $(STRIP) $< -o $@
endif
vmlinux.tmp: vmlinux FORCE
$(call if_changed,precompress)
targets += vmlinux.tmp
This will also correctly handle CONFIG_KGDB changing.
(Maybe the naming can be improved)
And for the compressor invocations we already have predefined commands:
vmlinux.gz: vmlinux.tmp FORCE
$(call if_changed,gzip)
targets += vmlinux.gz
> > > +
> > > CLEAN_FILES += vmlinux.gz vmlinux.bz2
> >
> > CLEAN_FILES also needs to be updated.
>
> Noted. Will fix for v2.
If you use $(call if_changed) as explained above, the "targets += ..."
will make the CLEAN_FILES unnecessary.
next prev parent reply other threads:[~2025-08-09 12:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-09 1:55 [PATCH] m68k: Add target for lz4 compressed vmlinux Daniel Palmer
2025-08-09 7:50 ` Thomas Weißschuh
2025-08-09 11:35 ` Daniel Palmer
2025-08-09 12:29 ` Thomas Weißschuh [this message]
2025-08-10 9:08 ` Daniel Palmer
2025-08-10 9:21 ` Thomas Weißschuh
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=d7974cbe-41b3-4994-8982-30c8f660e65f@t-8ch.de \
--to=linux@weissschuh.net \
--cc=daniel@0x0f.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