Re: [PATCH] m68k: Add target for lz4 compressed vmlinux

From: Daniel Palmer
Date: Sat Aug 09 2025 - 07:36:00 EST


Hi Thomas,

On Sat, 9 Aug 2025 at 16:50, Thomas Weißschuh <linux@xxxxxxxxxxxxxx> 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>

> > +
> > CLEAN_FILES += vmlinux.gz vmlinux.bz2
>
> CLEAN_FILES also needs to be updated.

Noted. Will fix for v2.

Thanks,

Daniel