diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-08-30 11:42:40 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-03 11:57:50 -0400 |
commit | 38d2d649be17b291a965a2e1370d119ee319caf2 (patch) | |
tree | 02ef72e26566c3f457d214e2210f8516d40a4976 /arch/mips/Makefile | |
parent | 3b29aa5ba204c62b3ec8f9f5b1ebd6e5d74f75d3 (diff) |
MIPS: Refactor boot and boot/compressed rules
Split out the arch/mips/boot/ and arch/mips/boot/compressed/ targets
into boot-y and bootz-y variables. This makes it slightly cleaner to add
new targets.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5793/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 37f9ef324f2f..6e1ab33f396a 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -254,6 +254,17 @@ drivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/ | |||
254 | # suspend and hibernation support | 254 | # suspend and hibernation support |
255 | drivers-$(CONFIG_PM) += arch/mips/power/ | 255 | drivers-$(CONFIG_PM) += arch/mips/power/ |
256 | 256 | ||
257 | # boot image targets (arch/mips/boot/) | ||
258 | boot-y := vmlinux.bin | ||
259 | boot-y += vmlinux.ecoff | ||
260 | boot-y += vmlinux.srec | ||
261 | |||
262 | # compressed boot image targets (arch/mips/boot/compressed/) | ||
263 | bootz-y := vmlinuz | ||
264 | bootz-y += vmlinuz.bin | ||
265 | bootz-y += vmlinuz.ecoff | ||
266 | bootz-y += vmlinuz.srec | ||
267 | |||
257 | ifdef CONFIG_LASAT | 268 | ifdef CONFIG_LASAT |
258 | rom.bin rom.sw: vmlinux | 269 | rom.bin rom.sw: vmlinux |
259 | $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@ | 270 | $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@ |
@@ -280,11 +291,11 @@ vmlinux.64: vmlinux | |||
280 | all: $(all-y) | 291 | all: $(all-y) |
281 | 292 | ||
282 | # boot | 293 | # boot |
283 | vmlinux.bin vmlinux.ecoff vmlinux.srec: $(vmlinux-32) FORCE | 294 | $(boot-y): $(vmlinux-32) FORCE |
284 | $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@ | 295 | $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) arch/mips/boot/$@ |
285 | 296 | ||
286 | # boot/compressed | 297 | # boot/compressed |
287 | vmlinuz vmlinuz.bin vmlinuz.ecoff vmlinuz.srec: $(vmlinux-32) FORCE | 298 | $(bootz-y): $(vmlinux-32) FORCE |
288 | $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ | 299 | $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ |
289 | VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $@ | 300 | VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $@ |
290 | 301 | ||