]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sh: Fix SH4 build with GCC versions without -m4-nofpu
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 14 Sep 2019 17:05:38 +0000 (19:05 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 14 Sep 2019 19:28:55 +0000 (21:28 +0200)
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>
arch/sh/cpu/sh4/config.mk

index d62d285e606d309930dea116155e3229a8b520cb..23fec6649293b51acc27c9bf321f443acf2ed4bc 100644 (file)
@@ -6,4 +6,4 @@
 # (C) Copyright 2007
 # Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
 #
-PLATFORM_CPPFLAGS += -m4-nofpu
+PLATFORM_CPPFLAGS += $(call cc-option,-m4-nofpu,-m4)