lkml.org 
[lkml]   [2018]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] nds32: fix building failed if using older version gcc.
Date
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
\
 
 \ /
  Last update: 2018-03-01 17:42    [W:0.025 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site