sh: Use proper SH-2A CFLAGS on newer compilers.
[firefly-linux-kernel-4.4.55.git] / arch / sh / Makefile
index c1dbef21263430f68ba594d2b3d893063732cc11..4903c7c665a9a828ce6c0da3bef4820d248396d2 100644 (file)
@@ -35,6 +35,7 @@ endif
 endif
 
 cflags-$(CONFIG_CPU_SH2)               := -m2
+cflags-$(CONFIG_CPU_SH2A)              := -m2a $(call cc-option,-m2a-nofpu,)
 cflags-$(CONFIG_CPU_SH3)               := -m3
 cflags-$(CONFIG_CPU_SH4)               := -m4 \
        $(call cc-option,-mno-implicit-fp,-m4-nofpu)