diff options
Diffstat (limited to 'arch/mips/Makefile')
| -rw-r--r-- | arch/mips/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index ca8f8340d75f..de300b993607 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
| @@ -285,15 +285,19 @@ endif | |||
| 285 | # Other need ECOFF, so we build a 32-bit ELF binary for them which we then | 285 | # Other need ECOFF, so we build a 32-bit ELF binary for them which we then |
| 286 | # convert to ECOFF using elf2ecoff. | 286 | # convert to ECOFF using elf2ecoff. |
| 287 | # | 287 | # |
| 288 | quiet_cmd_32 = OBJCOPY $@ | ||
| 289 | cmd_32 = $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@ | ||
| 288 | vmlinux.32: vmlinux | 290 | vmlinux.32: vmlinux |
| 289 | $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@ | 291 | $(call cmd,32) |
| 290 | 292 | ||
| 291 | # | 293 | # |
| 292 | # The 64-bit ELF tools are pretty broken so at this time we generate 64-bit | 294 | # The 64-bit ELF tools are pretty broken so at this time we generate 64-bit |
| 293 | # ELF files from 32-bit files by conversion. | 295 | # ELF files from 32-bit files by conversion. |
| 294 | # | 296 | # |
| 297 | quiet_cmd_64 = OBJCOPY $@ | ||
| 298 | cmd_64 = $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ | ||
| 295 | vmlinux.64: vmlinux | 299 | vmlinux.64: vmlinux |
| 296 | $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ | 300 | $(call cmd,64) |
| 297 | 301 | ||
| 298 | all: $(all-y) | 302 | all: $(all-y) |
| 299 | 303 | ||
| @@ -302,10 +306,16 @@ $(boot-y): $(vmlinux-32) FORCE | |||
| 302 | $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \ | 306 | $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \ |
| 303 | $(bootvars-y) arch/mips/boot/$@ | 307 | $(bootvars-y) arch/mips/boot/$@ |
| 304 | 308 | ||
| 309 | ifdef CONFIG_SYS_SUPPORTS_ZBOOT | ||
| 305 | # boot/compressed | 310 | # boot/compressed |
| 306 | $(bootz-y): $(vmlinux-32) FORCE | 311 | $(bootz-y): $(vmlinux-32) FORCE |
| 307 | $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ | 312 | $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \ |
| 308 | $(bootvars-y) 32bit-bfd=$(32bit-bfd) $@ | 313 | $(bootvars-y) 32bit-bfd=$(32bit-bfd) $@ |
| 314 | else | ||
| 315 | vmlinuz: FORCE | ||
| 316 | @echo ' CONFIG_SYS_SUPPORTS_ZBOOT is not enabled' | ||
| 317 | /bin/false | ||
| 318 | endif | ||
| 309 | 319 | ||
| 310 | 320 | ||
| 311 | CLEAN_FILES += vmlinux.32 vmlinux.64 | 321 | CLEAN_FILES += vmlinux.32 vmlinux.64 |
