Lines Matching refs:cflags
61 cflags-y += -mmcount-ra-address -DKBUILD_MCOUNT_RA_ADDRESS
65 cflags-y += $(call cc-option, -mno-check-zero-division)
72 cflags-y += -mabi=32
80 cflags-y += -mabi=64
97 cflags-y += -G 0 -mno-abicalls -fno-pic -pipe
98 cflags-y += -msoft-float -Wa,-msoft-float
107 cflags-y += -ffreestanding
109 cflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
110 cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -EL
112 cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \
127 cflags-y += -fno-stack-check
146 cflags-y += $(call cc-option,-Wa$(comma)-mno-fix-loongson3-llsc,)
151 cflags-$(CONFIG_CPU_R3000) += -march=r3000
152 cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
153 cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
154 cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
155 cflags-$(CONFIG_CPU_MIPS32_R1) += -march=mips32 -Wa,--trap
156 cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -Wa,--trap
157 cflags-$(CONFIG_CPU_MIPS32_R5) += -march=mips32r5 -Wa,--trap -modd-spreg
158 cflags-$(CONFIG_CPU_MIPS32_R6) += -march=mips32r6 -Wa,--trap -modd-spreg
159 cflags-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,--trap
160 cflags-$(CONFIG_CPU_MIPS64_R2) += -march=mips64r2 -Wa,--trap
161 cflags-$(CONFIG_CPU_MIPS64_R5) += -march=mips64r5 -Wa,--trap
162 cflags-$(CONFIG_CPU_MIPS64_R6) += -march=mips64r6 -Wa,--trap
163 cflags-$(CONFIG_CPU_P5600) += -march=p5600 -Wa,--trap -modd-spreg
164 cflags-$(CONFIG_CPU_R5000) += -march=r5000 -Wa,--trap
165 cflags-$(CONFIG_CPU_R5500) += $(call cc-option,-march=r5500,-march=r5000) \
167 cflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=r5000) \
169 cflags-$(CONFIG_CPU_RM7000) += $(call cc-option,-march=rm7000,-march=r5000) \
171 cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \
173 cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx)
174 cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d)
175 cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \
177 cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += $(call cc-option,-march=octeon) -Wa,--trap
178 ifeq (,$(findstring march=octeon, $(cflags-$(CONFIG_CPU_CAVIUM_OCTEON))))
179 cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon
181 cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1
182 cflags-$(CONFIG_CPU_BMIPS) += -march=mips32 -Wa,-mips32 -Wa,--trap
184 cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,)
185 cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,)
186 cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,)
197 mips-cflags := $(cflags-y)
199 smartmips-ase := $(call cc-option-yn,$(mips-cflags) -msmartmips)
200 cflags-$(smartmips-ase) += -msmartmips -Wa,--no-warn
203 micromips-ase := $(call cc-option-yn,$(mips-cflags) -mmicromips)
204 cflags-$(micromips-ase) += -mmicromips
207 toolchain-msa := $(call cc-option-yn,$(mips-cflags) -mhard-float -mfp64 -Wa$(comma)-mmsa)
208 cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA
210 toolchain-virt := $(call cc-option-yn,$(mips-cflags) -mvirt)
211 cflags-$(toolchain-virt) += -DTOOLCHAIN_SUPPORTS_VIRT
214 xpa-cflags-y := $(mips-cflags)
215 xpa-cflags-$(micromips-ase) += -mmicromips -Wa$(comma)-fatal-warnings
216 toolchain-xpa := $(call cc-option-yn,$(xpa-cflags-y) -mxpa)
217 cflags-$(toolchain-xpa) += -DTOOLCHAIN_SUPPORTS_XPA
218 toolchain-crc := $(call cc-option-yn,$(mips-cflags) -Wa$(comma)-mcrc)
219 cflags-$(toolchain-crc) += -DTOOLCHAIN_SUPPORTS_CRC
220 toolchain-dsp := $(call cc-option-yn,$(mips-cflags) -Wa$(comma)-mdsp)
221 cflags-$(toolchain-dsp) += -DTOOLCHAIN_SUPPORTS_DSP
222 toolchain-ginv := $(call cc-option-yn,$(mips-cflags) -Wa$(comma)-mginv)
223 cflags-$(toolchain-ginv) += -DTOOLCHAIN_SUPPORTS_GINV
252 cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
269 cflags-y += -msym32 -DKBUILD_64BIT_SYM32
287 KBUILD_AFLAGS += $(cflags-y)
288 KBUILD_CFLAGS += $(cflags-y)