aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 77f5021218d3..ba04782c4b91 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -69,6 +69,7 @@ endif
69 69
70all-$(CONFIG_BOOT_ELF32) := $(vmlinux-32) 70all-$(CONFIG_BOOT_ELF32) := $(vmlinux-32)
71all-$(CONFIG_BOOT_ELF64) := $(vmlinux-64) 71all-$(CONFIG_BOOT_ELF64) := $(vmlinux-64)
72all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlinuz
72 73
73# 74#
74# GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel 75# GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel
@@ -331,7 +332,7 @@ load-$(CONFIG_LEMOTE_FULOONG2E) +=0xffffffff80100000
331core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ 332core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/
332cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta 333cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta
333load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 334load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000
334all-$(CONFIG_MIPS_MALTA) := vmlinux.bin 335all-$(CONFIG_MIPS_MALTA) := vmlinuz.bin
335 336
336# 337#
337# MIPS SIM 338# MIPS SIM
@@ -581,7 +582,7 @@ load-$(CONFIG_SNI_RM) += 0xffffffff80600000
581else 582else
582load-$(CONFIG_SNI_RM) += 0xffffffff80030000 583load-$(CONFIG_SNI_RM) += 0xffffffff80030000
583endif 584endif
584all-$(CONFIG_SNI_RM) := vmlinux.ecoff 585all-$(CONFIG_SNI_RM) := vmlinuz.ecoff
585 586
586# 587#
587# Common TXx9 588# Common TXx9
@@ -699,9 +700,23 @@ vmlinux.64: vmlinux
699 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ 700 $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@
700 701
701makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) 702makeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1)
703makezboot =$(Q)$(MAKE) $(build)=arch/mips/boot/compressed \
704 VMLINUX_LOAD_ADDRESS=$(load-y) 32bit-bfd=$(32bit-bfd) $(1)
702 705
703all: $(all-y) 706all: $(all-y)
704 707
708vmlinuz: vmlinux FORCE
709 +@$(call makezboot,$@)
710
711vmlinuz.bin: vmlinux
712 +@$(call makezboot,$@)
713
714vmlinuz.ecoff: vmlinux
715 +@$(call makezboot,$@)
716
717vmlinuz.srec: vmlinux
718 +@$(call makezboot,$@)
719
705vmlinux.bin: $(vmlinux-32) 720vmlinux.bin: $(vmlinux-32)
706 +@$(call makeboot,$@) 721 +@$(call makeboot,$@)
707 722
@@ -726,11 +741,13 @@ endif
726 741
727install: 742install:
728 $(Q)install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE) 743 $(Q)install -D -m 755 vmlinux $(INSTALL_PATH)/vmlinux-$(KERNELRELEASE)
744 $(Q)install -D -m 755 vmlinuz $(INSTALL_PATH)/vmlinuz-$(KERNELRELEASE)
729 $(Q)install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE) 745 $(Q)install -D -m 644 .config $(INSTALL_PATH)/config-$(KERNELRELEASE)
730 $(Q)install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE) 746 $(Q)install -D -m 644 System.map $(INSTALL_PATH)/System.map-$(KERNELRELEASE)
731 747
732archclean: 748archclean:
733 @$(MAKE) $(clean)=arch/mips/boot 749 @$(MAKE) $(clean)=arch/mips/boot
750 @$(MAKE) $(clean)=arch/mips/boot/compressed
734 @$(MAKE) $(clean)=arch/mips/lasat 751 @$(MAKE) $(clean)=arch/mips/lasat
735 752
736define archhelp 753define archhelp
@@ -738,10 +755,18 @@ define archhelp
738 echo ' vmlinux.ecoff - ECOFF boot image' 755 echo ' vmlinux.ecoff - ECOFF boot image'
739 echo ' vmlinux.bin - Raw binary boot image' 756 echo ' vmlinux.bin - Raw binary boot image'
740 echo ' vmlinux.srec - SREC boot image' 757 echo ' vmlinux.srec - SREC boot image'
758 echo ' vmlinuz - Compressed boot(zboot) image'
759 echo ' vmlinuz.ecoff - ECOFF zboot image'
760 echo ' vmlinuz.bin - Raw binary zboot image'
761 echo ' vmlinuz.srec - SREC zboot image'
741 echo 762 echo
742 echo ' These will be default as apropriate for a configured platform.' 763 echo ' These will be default as apropriate for a configured platform.'
743endef 764endef
744 765
745CLEAN_FILES += vmlinux.32 \ 766CLEAN_FILES += vmlinux.32 \
746 vmlinux.64 \ 767 vmlinux.64 \
747 vmlinux.ecoff 768 vmlinux.ecoff \
769 vmlinuz \
770 vmlinuz.ecoff \
771 vmlinuz.bin \
772 vmlinuz.srec