summaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-10-09 08:35:08 +0200
committerRich Felker <dalias@libc.org>2016-10-13 22:15:41 +0200
commitf208b87b48d5af2ea483293eccb3998c467dfba1 (patch)
tree6eebe872b7269cc31ecc62726f61b67b38e69834 /arch/sh/Makefile
parentLinux 4.8 (diff)
downloadlinux-f208b87b48d5af2ea483293eccb3998c467dfba1.tar.xz
linux-f208b87b48d5af2ea483293eccb3998c467dfba1.zip
sh: support CPU_J2 when compiler lacks -mj2
Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index 00476662ac2c..336f33a419d9 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -31,7 +31,7 @@ isa-y := $(isa-y)-up
endif
cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,)
-cflags-$(CONFIG_CPU_J2) := $(call cc-option,-mj2,)
+cflags-$(CONFIG_CPU_J2) += $(call cc-option,-mj2,)
cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \
$(call cc-option,-m2a-nofpu,) \
$(call cc-option,-m4-nofpu,)