summaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 93ce1cefcdf8..3637ba52ebce 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -266,26 +266,18 @@ vmlinux.32: vmlinux
vmlinux.64: vmlinux
$(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
-makezboot =$(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
- VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $(1)
-
all: $(all-y)
-vmlinuz: vmlinux FORCE
- +@$(call makezboot,$@)
-
-vmlinuz.bin: vmlinux
- +@$(call makezboot,$@)
-
-vmlinuz.ecoff: vmlinux
- +@$(call makezboot,$@)
-
-vmlinuz.srec: vmlinux
- +@$(call makezboot,$@)
-
+# boot
vmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE
$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@
+# boot/compressed
+vmlinuz vmlinuz.bin vmlinuz.ecoff vmlinuz.srec: $(vmlinux-32) FORCE
+ $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
+ VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $@
+
+
CLEAN_FILES += vmlinux.ecoff \
vmlinux.srec