diff options
Diffstat (limited to 'arch/mips/Makefile')
-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 1893efd43fca..a77dcf35c14e 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 | ||
@@ -172,7 +173,8 @@ cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) | |||
172 | 173 | ||
173 | ifdef CONFIG_CPU_SB1 | 174 | ifdef CONFIG_CPU_SB1 |
174 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS | 175 | ifdef CONFIG_SB1_PASS_1_WORKAROUNDS |
175 | MODFLAGS += -msb1-pass1-workarounds | 176 | KBUILD_AFLAGS_MODULE += -msb1-pass1-workarounds |
177 | KBUILD_CFLAGS_MODULE += -msb1-pass1-workarounds | ||
176 | endif | 178 | endif |
177 | endif | 179 | endif |
178 | 180 | ||