Skip to contentSkip to conversation

mips: boot: use 'targets' instead of extra-y in Makefile

PATCH Applied Masahiro Yamada 2 participants 2 messages Jun 8, 2025 – Jul 2, 2025 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: boot: use 'targets' instead of extra-y in Makefile

vmlinux.bin.* files are built as prerequisites of other objects. There is no need to use extra-y, which is planned for deprecation.

---

 arch/mips/boot/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/mips/boot/Makefile +4 -4
index 196c44fa72d9..8473c4671702 100644
@@ -54,10 +54,10 @@ UIMAGE_ENTRYADDR = $(VMLINUX_ENTRY_ADDRESS)
 # Compressed vmlinux images
 #
 
-extra-y += vmlinux.bin.bz2
-extra-y += vmlinux.bin.gz
-extra-y += vmlinux.bin.lzma
-extra-y += vmlinux.bin.lzo
+targets += vmlinux.bin.bz2
+targets += vmlinux.bin.gz
+targets += vmlinux.bin.lzma
+targets += vmlinux.bin.lzo
 
 $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
 	$(call if_changed,bzip2)
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 30 lines · Masahiro Yamada

vmlinux.bin.* files are built as prerequisites of other objects. There is no need to use extra-y, which is planned for deprecation.

---

 arch/mips/boot/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/mips/boot/Makefile +4 -4
index 196c44fa72d9..8473c4671702 100644
@@ -54,10 +54,10 @@ UIMAGE_ENTRYADDR = $(VMLINUX_ENTRY_ADDRESS)
 # Compressed vmlinux images
 #
 
-extra-y += vmlinux.bin.bz2
-extra-y += vmlinux.bin.gz
-extra-y += vmlinux.bin.lzma
-extra-y += vmlinux.bin.lzo
+targets += vmlinux.bin.bz2
+targets += vmlinux.bin.gz
+targets += vmlinux.bin.lzma
+targets += vmlinux.bin.lzo
 
 $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
 	$(call if_changed,bzip2)
Signature · 1 line
2.43.0

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]