diff options
author | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
commit | 772320e84588dcbe1600ffb83e5f328f2209ac2a (patch) | |
tree | a7de21b79340aeaa17c58126f6b801b82c77b53a /arch/mips/Makefile | |
parent | 1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff) | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts:
arch/powerpc/Makefile
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 32 |
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) |
138 | cflags-$(CONFIG_CPU_LOONGSON2F) += \ | 138 | cflags-$(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 | ||
141 | ifdef 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 | ||
152 | endif | ||
140 | 153 | ||
141 | cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 154 | cflags-$(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/ | |||
187 | libs-y += arch/mips/fw/lib/ | 200 | libs-y += arch/mips/fw/lib/ |
188 | 201 | ||
189 | # | 202 | # |
203 | # Kernel compression | ||
204 | # | ||
205 | ifdef SYS_SUPPORTS_ZBOOT | ||
206 | COMPRESSION_FNAME = vmlinuz | ||
207 | else | ||
208 | COMPRESSION_FNAME = vmlinux | ||
209 | endif | ||
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 | # |
337 | core-$(CONFIG_MACH_LOONGSON) +=arch/mips/loongson/ | 359 | core-$(CONFIG_MACH_LOONGSON) += arch/mips/loongson/ |
338 | cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson \ | 360 | cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson \ |
339 | -mno-branch-likely | 361 | -mno-branch-likely |
340 | load-$(CONFIG_LEMOTE_FULOONG2E) +=0xffffffff80100000 | 362 | load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000 |
341 | load-$(CONFIG_LEMOTE_MACH2F) +=0xffffffff80200000 | 363 | load-$(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 | |||
346 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ | 368 | core-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ |
347 | cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta | 369 | cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta |
348 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 | 370 | load-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 |
349 | all-$(CONFIG_MIPS_MALTA) := vmlinuz.bin | 371 | all-$(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 | |||
596 | else | 618 | else |
597 | load-$(CONFIG_SNI_RM) += 0xffffffff80030000 | 619 | load-$(CONFIG_SNI_RM) += 0xffffffff80030000 |
598 | endif | 620 | endif |
599 | all-$(CONFIG_SNI_RM) := vmlinuz.ecoff | 621 | all-$(CONFIG_SNI_RM) := $(COMPRESSION_FNAME).ecoff |
600 | 622 | ||
601 | # | 623 | # |
602 | # Common TXx9 | 624 | # Common TXx9 |