aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
committerMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
commit772320e84588dcbe1600ffb83e5f328f2209ac2a (patch)
treea7de21b79340aeaa17c58126f6b801b82c77b53a /arch/mips/Makefile
parent1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff)
parent9fe6206f400646a2322096b56c59891d530e8d51 (diff)
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts: arch/powerpc/Makefile
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile32
1 files changed, 27 insertions, 5 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index a77dcf35c14e..f7139b2dfed1 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -137,6 +137,19 @@ cflags-$(CONFIG_CPU_LOONGSON2E) += \
137 $(call cc-option,-march=loongson2e,-march=r4600) 137 $(call cc-option,-march=loongson2e,-march=r4600)
138cflags-$(CONFIG_CPU_LOONGSON2F) += \ 138cflags-$(CONFIG_CPU_LOONGSON2F) += \
139 $(call cc-option,-march=loongson2f,-march=r4600) 139 $(call cc-option,-march=loongson2f,-march=r4600)
140# enable the workarounds for loongson2f
141ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
142 ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-nop,),)
143 $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-nop)
144 else
145 cflags-$(CONFIG_CPU_NOP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-nop
146 endif
147 ifeq ($(call as-option,-Wa$(comma)-mfix-loongson2f-jump,),)
148 $(error only binutils >= 2.20.2 have needed option -mfix-loongson2f-jump)
149 else
150 cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa$(comma)-mfix-loongson2f-jump
151 endif
152endif
140 153
141cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ 154cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
142 -Wa,-mips32 -Wa,--trap 155 -Wa,-mips32 -Wa,--trap
@@ -187,6 +200,15 @@ libs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/
187libs-y += arch/mips/fw/lib/ 200libs-y += arch/mips/fw/lib/
188 201
189# 202#
203# Kernel compression
204#
205ifdef SYS_SUPPORTS_ZBOOT
206COMPRESSION_FNAME = vmlinuz
207else
208COMPRESSION_FNAME = vmlinux
209endif
210
211#
190# Board-dependent options and extra files 212# Board-dependent options and extra files
191# 213#
192 214
@@ -334,11 +356,11 @@ load-$(CONFIG_WR_PPMC) += 0xffffffff80100000
334# 356#
335# Loongson family 357# Loongson family
336# 358#
337core-$(CONFIG_MACH_LOONGSON) +=arch/mips/loongson/ 359core-$(CONFIG_MACH_LOONGSON) += arch/mips/loongson/
338cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson \ 360cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson \
339 -mno-branch-likely 361 -mno-branch-likely
340load-$(CONFIG_LEMOTE_FULOONG2E) +=0xffffffff80100000 362load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000
341load-$(CONFIG_LEMOTE_MACH2F) +=0xffffffff80200000 363load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000
342 364
343# 365#
344# MIPS Malta board 366# MIPS Malta board
@@ -346,7 +368,7 @@ load-$(CONFIG_LEMOTE_MACH2F) +=0xffffffff80200000
346core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ 368core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/
347cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta 369cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta
348load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 370load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000
349all-$(CONFIG_MIPS_MALTA) := vmlinuz.bin 371all-$(CONFIG_MIPS_MALTA) := $(COMPRESSION_FNAME).bin
350 372
351# 373#
352# MIPS SIM 374# MIPS SIM
@@ -596,7 +618,7 @@ load-$(CONFIG_SNI_RM) += 0xffffffff80600000
596else 618else
597load-$(CONFIG_SNI_RM) += 0xffffffff80030000 619load-$(CONFIG_SNI_RM) += 0xffffffff80030000
598endif 620endif
599all-$(CONFIG_SNI_RM) := vmlinuz.ecoff 621all-$(CONFIG_SNI_RM) := $(COMPRESSION_FNAME).ecoff
600 622
601# 623#
602# Common TXx9 624# Common TXx9