* [PATCH] nds32: fix building failed if using older version gcc.
@ 2018-03-01 16:40 Greentime Hu
0 siblings, 0 replies; only message in thread
From: Greentime Hu @ 2018-03-01 16:40 UTC (permalink / raw)
To: linux-kernel, arnd, greentime, green.hu
It will be built failed because these options are not supported by older
version gcc.
Signed-off-by: Greentime Hu <greentime@andestech.com>
---
arch/nds32/Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index 54b4de9d48b6..91f933d5a962 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -5,7 +5,8 @@ KBUILD_DEFCONFIG := defconfig
comma = ,
-KBUILD_CFLAGS +=-mno-sched-prolog-epilog -mcmodel=large
+KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
+KBUILD_CFLAGS += -mcmodel=large
KBUILD_CFLAGS +=$(arch-y) $(tune-y)
KBUILD_AFLAGS +=$(arch-y) $(tune-y)
@@ -33,9 +34,9 @@ BUILTIN_DTB := n
endif
ifdef CONFIG_CPU_LITTLE_ENDIAN
-KBUILD_CFLAGS += -EL
+KBUILD_CFLAGS += $(call cc-option, -EL)
else
-KBUILD_CFLAGS += -EB
+KBUILD_CFLAGS += $(call cc-option, -EB)
endif
boot := arch/nds32/boot
--
2.16.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-01 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-01 16:40 [PATCH] nds32: fix building failed if using older version gcc Greentime Hu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome