MIPS: Fix clean of vmlinuz.{32,ecoff,bin,srec}
authorJames Hogan <jhogan@kernel.org>
Tue, 16 Jan 2018 21:38:24 +0000 (21:38 +0000)
committerJames Hogan <jhogan@kernel.org>
Thu, 18 Jan 2018 21:53:14 +0000 (21:53 +0000)
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"")
Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18491/

arch/mips/boot/compressed/Makefile

index c675eece389a41c036c4ff2e1aeaf89509368a1f..adce180f3ee4264cabfdf85e7032f7c661b6a4c0 100644 (file)
@@ -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