summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2019-09-14 19:05:38 +0200
committerMarek Vasut <marex@denx.de>2019-09-14 21:28:55 +0200
commitfa7cff834f2b510ec37027b6d4c5e9f87efea3d3 (patch)
tree8b961af6ef0e31e5ef28b4d8adc3573170a5bd13 /arch
parente914109de48d3baf8baf8a2fcada78a0dbe7757c (diff)
downloadu-boot-fa7cff834f2b510ec37027b6d4c5e9f87efea3d3.tar.gz
u-boot-fa7cff834f2b510ec37027b6d4c5e9f87efea3d3.tar.bz2
u-boot-fa7cff834f2b510ec37027b6d4c5e9f87efea3d3.zip
sh: Fix SH4 build with GCC versions without -m4-nofpu
Pass -m4 instead of -m4-nofpu to GCC versions which do not support the -m4-nofpu option. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/cpu/sh4/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/cpu/sh4/config.mk b/arch/sh/cpu/sh4/config.mk
index d62d285e60..23fec66492 100644
--- a/arch/sh/cpu/sh4/config.mk
+++ b/arch/sh/cpu/sh4/config.mk
@@ -6,4 +6,4 @@
# (C) Copyright 2007
# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
#
-PLATFORM_CPPFLAGS += -m4-nofpu
+PLATFORM_CPPFLAGS += $(call cc-option,-m4-nofpu,-m4)