diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index d152dfbc360d..5200f649dd4e 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -197,11 +197,17 @@ endif | |||
197 | # Warning: the 64-bit MIPS architecture does not support the `smartmips' extension | 197 | # Warning: the 64-bit MIPS architecture does not support the `smartmips' extension |
198 | # Pass -Wa,--no-warn to disable all assembler warnings until the kernel code has | 198 | # Pass -Wa,--no-warn to disable all assembler warnings until the kernel code has |
199 | # been fixed properly. | 199 | # been fixed properly. |
200 | mips-cflags := "$(cflags-y)" | 200 | mips-cflags := $(cflags-y) |
201 | cflags-$(CONFIG_CPU_HAS_SMARTMIPS) += $(call cc-option,$(mips-cflags),-msmartmips) -Wa,--no-warn | 201 | ifeq ($(CONFIG_CPU_HAS_SMARTMIPS),y) |
202 | cflags-$(CONFIG_CPU_MICROMIPS) += $(call cc-option,$(mips-cflags),-mmicromips) | 202 | smartmips-ase := $(call cc-option-yn,$(mips-cflags) -msmartmips) |
203 | cflags-$(smartmips-ase) += -msmartmips -Wa,--no-warn | ||
204 | endif | ||
205 | ifeq ($(CONFIG_CPU_MICROMIPS),y) | ||
206 | micromips-ase := $(call cc-option-yn,$(mips-cflags) -mmicromips) | ||
207 | cflags-$(micromips-ase) += -mmicromips | ||
208 | endif | ||
203 | ifeq ($(CONFIG_CPU_HAS_MSA),y) | 209 | ifeq ($(CONFIG_CPU_HAS_MSA),y) |
204 | toolchain-msa := $(call cc-option-yn,-$(mips-cflags),mhard-float -mfp64 -Wa$(comma)-mmsa) | 210 | toolchain-msa := $(call cc-option-yn,$(mips-cflags) -mhard-float -mfp64 -Wa$(comma)-mmsa) |
205 | cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA | 211 | cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA |
206 | endif | 212 | endif |
207 | 213 | ||
@@ -365,7 +371,11 @@ core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/ | |||
365 | 371 | ||
366 | PHONY += dtbs | 372 | PHONY += dtbs |
367 | dtbs: scripts | 373 | dtbs: scripts |
368 | $(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs | 374 | $(Q)$(MAKE) $(build)=arch/mips/boot/dts |
375 | |||
376 | PHONY += dtbs_install | ||
377 | dtbs_install: | ||
378 | $(Q)$(MAKE) $(dtbinst)=arch/mips/boot/dts | ||
369 | 379 | ||
370 | archprepare: | 380 | archprepare: |
371 | ifdef CONFIG_MIPS32_N32 | 381 | ifdef CONFIG_MIPS32_N32 |
@@ -407,6 +417,7 @@ define archhelp | |||
407 | echo ' uImage.lzma - U-Boot image (lzma)' | 417 | echo ' uImage.lzma - U-Boot image (lzma)' |
408 | echo ' uImage.lzo - U-Boot image (lzo)' | 418 | echo ' uImage.lzo - U-Boot image (lzo)' |
409 | echo ' dtbs - Device-tree blobs for enabled boards' | 419 | echo ' dtbs - Device-tree blobs for enabled boards' |
420 | echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)' | ||
410 | echo | 421 | echo |
411 | echo ' These will be default as appropriate for a configured platform.' | 422 | echo ' These will be default as appropriate for a configured platform.' |
412 | endef | 423 | endef |