diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-06-09 04:50:57 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-06-09 04:50:57 -0400 |
commit | d2dd01de9924ae24afeba5aa5bc2e08287701df6 (patch) | |
tree | 3021bf496579a48984666355b59df5e44b42dd32 /arch/mips/Makefile | |
parent | 367d04c4ec02dad34d80452e32e3370db7fb6fee (diff) | |
parent | 62a6f465f6572e1f28765c583c12753bb3e23715 (diff) |
Merge commit 'tip/core/iommu' into amd-iommu/fixes
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 8d544c7c9fe9..c4cae9e6b802 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -14,8 +14,6 @@ | |||
14 | 14 | ||
15 | KBUILD_DEFCONFIG := ip22_defconfig | 15 | KBUILD_DEFCONFIG := ip22_defconfig |
16 | 16 | ||
17 | cflags-y := -ffunction-sections | ||
18 | |||
19 | # | 17 | # |
20 | # Select the object file format to substitute into the linker script. | 18 | # Select the object file format to substitute into the linker script. |
21 | # | 19 | # |
@@ -50,6 +48,9 @@ ifneq ($(SUBARCH),$(ARCH)) | |||
50 | endif | 48 | endif |
51 | endif | 49 | endif |
52 | 50 | ||
51 | cflags-y := -ffunction-sections | ||
52 | cflags-y += $(call cc-option, -mno-check-zero-division) | ||
53 | |||
53 | ifdef CONFIG_32BIT | 54 | ifdef CONFIG_32BIT |
54 | ld-emul = $(32bit-emul) | 55 | ld-emul = $(32bit-emul) |
55 | vmlinux-32 = vmlinux | 56 | vmlinux-32 = vmlinux |
@@ -472,12 +473,12 @@ endif | |||
472 | # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys | 473 | # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys |
473 | # | 474 | # |
474 | ifdef CONFIG_SGI_IP28 | 475 | ifdef CONFIG_SGI_IP28 |
475 | ifeq ($(call cc-option-yn,-mr10k-cache-barrier=1), n) | 476 | ifeq ($(call cc-option-yn,-mr10k-cache-barrier=store), n) |
476 | $(error gcc doesn't support needed option -mr10k-cache-barrier=1) | 477 | $(error gcc doesn't support needed option -mr10k-cache-barrier=store) |
477 | endif | 478 | endif |
478 | endif | 479 | endif |
479 | core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ | 480 | core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ |
480 | cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=1 -I$(srctree)/arch/mips/include/asm/mach-ip28 | 481 | cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28 |
481 | load-$(CONFIG_SGI_IP28) += 0xa800000020004000 | 482 | load-$(CONFIG_SGI_IP28) += 0xa800000020004000 |
482 | 483 | ||
483 | # | 484 | # |