aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2010-05-30 10:27:33 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:25:57 -0400
commit961e196c7a3b3c3d1d9eb32629b0e745ce0a68d1 (patch)
treea57f19cb586244ca2106afa78062144aa7c0c29f /arch/mips/Makefile
parentad5f2635578a19ff8885bff1ef4d5adf7193cb02 (diff)
MIPS: Refactor arch/mips/boot/Makefile
- remove stuff that is not needed VMLINUX assignment, all: rule - use hostprogs-y for the host program - use kbuild rules for the three targets - to beautify output - drop clean-files - it is no longer needed - simplify arch/mips/Makefile when calling targets in boot/Makefile Signed-off-by: Sam Ravnborg <sam@ravnborg.org> To: linux-mips <linux-mips@linux-mips.org> To: Wu Zhangjin <wuzhangjin@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/1303/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 50f780aa8323..93ce1cefcdf8 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -266,7 +266,6 @@ vmlinux.32: vmlinux
266vmlinux.64: vmlinux 266vmlinux.64: vmlinux
267 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ 267 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
268 268
269makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1)
270makezboot =$(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ 269makezboot =$(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
271 VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $(1) 270 VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $(1)
272 271
@@ -284,14 +283,8 @@ vmlinuz.ecoff: vmlinux
284vmlinuz.srec: vmlinux 283vmlinuz.srec: vmlinux
285 +@$(call makezboot,$@) 284 +@$(call makezboot,$@)
286 285
287vmlinux.bin: $(vmlinux-32) 286vmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE
288 +@$(call makeboot,$@) 287 $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@
289
290vmlinux.ecoff: $(vmlinux-32)
291 +@$(call makeboot,$@)
292
293vmlinux.srec: $(vmlinux-32)
294 +@$(call makeboot,$@)
295 288
296CLEAN_FILES += vmlinux.ecoff \ 289CLEAN_FILES += vmlinux.ecoff \
297 vmlinux.srec 290 vmlinux.srec