aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile21
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.
200mips-cflags := "$(cflags-y)" 200mips-cflags := $(cflags-y)
201cflags-$(CONFIG_CPU_HAS_SMARTMIPS) += $(call cc-option,$(mips-cflags),-msmartmips) -Wa,--no-warn 201ifeq ($(CONFIG_CPU_HAS_SMARTMIPS),y)
202cflags-$(CONFIG_CPU_MICROMIPS) += $(call cc-option,$(mips-cflags),-mmicromips) 202smartmips-ase := $(call cc-option-yn,$(mips-cflags) -msmartmips)
203cflags-$(smartmips-ase) += -msmartmips -Wa,--no-warn
204endif
205ifeq ($(CONFIG_CPU_MICROMIPS),y)
206micromips-ase := $(call cc-option-yn,$(mips-cflags) -mmicromips)
207cflags-$(micromips-ase) += -mmicromips
208endif
203ifeq ($(CONFIG_CPU_HAS_MSA),y) 209ifeq ($(CONFIG_CPU_HAS_MSA),y)
204toolchain-msa := $(call cc-option-yn,-$(mips-cflags),mhard-float -mfp64 -Wa$(comma)-mmsa) 210toolchain-msa := $(call cc-option-yn,$(mips-cflags) -mhard-float -mfp64 -Wa$(comma)-mmsa)
205cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA 211cflags-$(toolchain-msa) += -DTOOLCHAIN_SUPPORTS_MSA
206endif 212endif
207 213
@@ -365,7 +371,11 @@ core-$(CONFIG_BUILTIN_DTB) += arch/mips/boot/dts/
365 371
366PHONY += dtbs 372PHONY += dtbs
367dtbs: scripts 373dtbs: scripts
368 $(Q)$(MAKE) $(build)=arch/mips/boot/dts dtbs 374 $(Q)$(MAKE) $(build)=arch/mips/boot/dts
375
376PHONY += dtbs_install
377dtbs_install:
378 $(Q)$(MAKE) $(dtbinst)=arch/mips/boot/dts
369 379
370archprepare: 380archprepare:
371ifdef CONFIG_MIPS32_N32 381ifdef 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.'
412endef 423endef