Skip to contentSkip to conversation

MIPS: Fix clean of vmlinuz.{32,ecoff,bin,srec}

PATCH New James Hogan 1 participant 1 message Jan 16, 2018 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Fix clean of vmlinuz.{32,ecoff,bin,srec}

Make doesn't expand shell style "vmlinuz.{32,ecoff,bin,srec}" to the 4 separate files, so none of these files get cleaned up by make clean. List the files separately instead.

Fixes ec3352925b74 ("MIPS: Remove all generated vmlinuz* files on "make clean"")
Cc Ralf Baechle <[email protected]>
---
 arch/mips/boot/compressed/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
arch/mips/boot/compressed/Makefile +5 -1
index c675eece389a..adce180f3ee4 100644
@@ -133,4 +133,8 @@ vmlinuz.srec: vmlinuz
 uzImage.bin: vmlinuz.bin FORCE
 	$(call if_changed,uimage,none)
 
-clean-files := $(objtree)/vmlinuz $(objtree)/vmlinuz.{32,ecoff,bin,srec}
+clean-files += $(objtree)/vmlinuz
+clean-files += $(objtree)/vmlinuz.32
+clean-files += $(objtree)/vmlinuz.ecoff
+clean-files += $(objtree)/vmlinuz.bin
+clean-files += $(objtree)/vmlinuz.srec
Signature · 1 line
2.13.6