diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 0b9c01add0a0..f7139b2dfed1 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -93,7 +93,8 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlinuz | |||
93 | cflags-y += -G 0 -mno-abicalls -fno-pic -pipe | 93 | cflags-y += -G 0 -mno-abicalls -fno-pic -pipe |
94 | cflags-y += -msoft-float | 94 | cflags-y += -msoft-float |
95 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib | 95 | LDFLAGS_vmlinux += -G 0 -static -n -nostdlib |
96 | MODFLAGS += -mlong-calls | 96 | KBUILD_AFLAGS_MODULE += -mlong-calls |
97 | KBUILD_CFLAGS_MODULE += -mlong-calls | ||
97 | 98 | ||
98 | cflags-y += -ffreestanding | 99 | cflags-y += -ffreestanding |
99 | 100 | ||
@@ -185,7 +186,8 @@ cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) | |||
185 | 186 | ||
186 | ifdef CONFIG_CPU_SB1 | 187 | ifdef CONFIG_CPU_SB1 |
187 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS | 188 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS |
188 | MODFLAGS += -msb1-pass1-workarounds | 189 | KBUILD_AFLAGS_MODULE += -msb1-pass1-workarounds |
190 | KBUILD_CFLAGS_MODULE += -msb1-pass1-workarounds | ||
189 | endif | 191 | endif |
190 | endif | 192 | endif |
191 | 193 | ||