* linux-next: manual merge of the kbuild-current tree with the origin tree
@ 2026-10-21 11:01 Mark Brown
2026-10-21 14:40 ` Magnus Lindholm
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2026-10-21 11:01 UTC (permalink / raw)
To: Nathan Chancellor, Nicolas Schier, KBuild Mailing List
Cc: Kees Cook, Linux Kernel Mailing List, Linux Next Mailing List,
Magnus Lindholm, Matt Turner
[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]
Hi all,
Today's linux-next merge of the kbuild-current tree got a conflict in:
arch/alpha/boot/Makefile
between commit:
c437950dceb88 ("alpha: add self-extracting compressed kernel boot stub")
from the origin tree and commit:
0d4d70da348b0 ("kbuild: Mark the gzip recipes as recursive")
from the kbuild-current tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc arch/alpha/boot/Makefile
index 7c2a41c1e2a06,b050753e90157..0000000000000
--- a/arch/alpha/boot/Makefile
+++ b/arch/alpha/boot/Makefile
@@@ -39,14 -38,9 +39,14 @@@ ifdef INITR
cat $(INITRD) >> $@
endif
-# Compressed kernel image
-$(obj)/vmlinux.gz: $(obj)/vmlinux FORCE
- +$(call if_changed,gzip)
+# Self-extracting compressed kernel image: a small ELF stub (see
+# compressed/) with the real vmlinux linked in compressed, which aboot
+# loads and enters like a plain vmlinux.
+$(obj)/compressed/vmlinux: vmlinux FORCE
+ $(Q)$(MAKE) $(build)=$(obj)/compressed $@
+
+$(obj)/vmlinuz: $(obj)/compressed/vmlinux FORCE
- $(call if_changed,copy)
++ +$(call if_changed,copy)
@echo ' Kernel $@ is ready'
$(obj)/main.o: $(obj)/ksize.h
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: linux-next: manual merge of the kbuild-current tree with the origin tree
2026-10-21 11:01 linux-next: manual merge of the kbuild-current tree with the origin tree Mark Brown
@ 2026-10-21 14:40 ` Magnus Lindholm
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Lindholm @ 2026-10-21 14:40 UTC (permalink / raw)
To: Mark Brown
Cc: Nathan Chancellor, Nicolas Schier, KBuild Mailing List,
Kees Cook, Linux Kernel Mailing List, Linux Next Mailing List,
Matt Turner
Hi Mark,
On Wed, Oct 21, 2026 at 1:01 PM Mark Brown <broonie@kernel.org> wrote:
>
> Hi all,
>
> Today's linux-next merge of the kbuild-current tree got a conflict in:
>
> arch/alpha/boot/Makefile
>
> between commit:
>
> c437950dceb88 ("alpha: add self-extracting compressed kernel boot stub")
>
> from the origin tree and commit:
>
> 0d4d70da348b0 ("kbuild: Mark the gzip recipes as recursive")
>
> from the kbuild-current tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> diff --cc arch/alpha/boot/Makefile
> index 7c2a41c1e2a06,b050753e90157..0000000000000
> --- a/arch/alpha/boot/Makefile
> +++ b/arch/alpha/boot/Makefile
> @@@ -39,14 -38,9 +39,14 @@@ ifdef INITR
> cat $(INITRD) >> $@
> endif
>
> -# Compressed kernel image
> -$(obj)/vmlinux.gz: $(obj)/vmlinux FORCE
> - +$(call if_changed,gzip)
> +# Self-extracting compressed kernel image: a small ELF stub (see
> +# compressed/) with the real vmlinux linked in compressed, which aboot
> +# loads and enters like a plain vmlinux.
> +$(obj)/compressed/vmlinux: vmlinux FORCE
> + $(Q)$(MAKE) $(build)=$(obj)/compressed $@
> +
> +$(obj)/vmlinuz: $(obj)/compressed/vmlinux FORCE
> - $(call if_changed,copy)
> ++ +$(call if_changed,copy)
> @echo ' Kernel $@ is ready'
>
Thanks for resolving this.
This recipe now only copies the completed image, so I think it
should stay without '+'. Matt's series moved compression into
arch/alpha/boot/compressed/Makefile, where the change should be:
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
- $(call if_changed,gzip)
+ +$(call if_changed,gzip)
The existing vmlinux.nh.gz gzip recipe in arch/alpha/boot/Makefile
still needs the '+' from the kbuild patch.
Maybe adjust the resolution accordingly?
Thanks,
Magnus
> $(obj)/main.o: $(obj)/ksize.h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-21 14:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 11:01 linux-next: manual merge of the kbuild-current tree with the origin tree Mark Brown
2026-10-21 14:40 ` Magnus Lindholm
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®