Makefile (ccebb88aea1329221e1063906f4846b532a57fb5) Makefile (44079d3509aee89c58f3e4fd929fa53ab2299019)
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

--- 316 unchanged lines hidden (view full) ---

325endif
326
327ifdef CONFIG_LASAT
328rom.bin rom.sw: vmlinux
329 $(Q)$(MAKE) $(build)=arch/mips/lasat/image \
330 $(bootvars-y) $@
331endif
332
1#
2# This file is subject to the terms and conditions of the GNU General Public
3# License. See the file "COPYING" in the main directory of this archive
4# for more details.
5#
6# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
7# DECStation modifications by Paul M. Antoine, 1996
8# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki

--- 316 unchanged lines hidden (view full) ---

325endif
326
327ifdef CONFIG_LASAT
328rom.bin rom.sw: vmlinux
329 $(Q)$(MAKE) $(build)=arch/mips/lasat/image \
330 $(bootvars-y) $@
331endif
332
333CMD_RELOCS = arch/mips/boot/tools/relocs
334quiet_cmd_relocs = RELOCS $<
335 cmd_relocs = $(CMD_RELOCS) $<
336
337#
338# Some machines like the Indy need 32-bit ELF binaries for booting purposes.
339# Other need ECOFF, so we build a 32-bit ELF binary for them which we then
340# convert to ECOFF using elf2ecoff.
341#
342quiet_cmd_32 = OBJCOPY $@
343 cmd_32 = $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@
344vmlinux.32: vmlinux
333#
334# Some machines like the Indy need 32-bit ELF binaries for booting purposes.
335# Other need ECOFF, so we build a 32-bit ELF binary for them which we then
336# convert to ECOFF using elf2ecoff.
337#
338quiet_cmd_32 = OBJCOPY $@
339 cmd_32 = $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@
340vmlinux.32: vmlinux
345ifeq ($(CONFIG_RELOCATABLE)$(CONFIG_64BIT),yy)
346# Currently, objcopy fails to handle the relocations in the elf64
347# So the relocs tool must be run here to remove them first
348 $(call cmd,relocs)
349endif
350 $(call cmd,32)
351
352#
353# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit
354# ELF files from 32-bit files by conversion.
355#
356quiet_cmd_64 = OBJCOPY $@
357 cmd_64 = $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
358vmlinux.64: vmlinux
359 $(call cmd,64)
360
361all: $(all-y)
362
363# boot
364$(boot-y): $(vmlinux-32) FORCE
341 $(call cmd,32)
342
343#
344# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit
345# ELF files from 32-bit files by conversion.
346#
347quiet_cmd_64 = OBJCOPY $@
348 cmd_64 = $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
349vmlinux.64: vmlinux
350 $(call cmd,64)
351
352all: $(all-y)
353
354# boot
355$(boot-y): $(vmlinux-32) FORCE
365ifeq ($(CONFIG_RELOCATABLE)$(CONFIG_32BIT),yy)
366 $(call cmd,relocs)
367endif
368 $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \
369 $(bootvars-y) arch/mips/boot/$@
370
371ifdef CONFIG_SYS_SUPPORTS_ZBOOT
372# boot/compressed
373$(bootz-y): $(vmlinux-32) FORCE
374 $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
375 $(bootvars-y) 32bit-bfd=$(32bit-bfd) $@

--- 132 unchanged lines hidden ---
356 $(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) \
357 $(bootvars-y) arch/mips/boot/$@
358
359ifdef CONFIG_SYS_SUPPORTS_ZBOOT
360# boot/compressed
361$(bootz-y): $(vmlinux-32) FORCE
362 $(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
363 $(bootvars-y) 32bit-bfd=$(32bit-bfd) $@

--- 132 unchanged lines hidden ---