aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreentime Hu <greentime@andestech.com>2018-02-28 21:54:07 -0500
committerGreentime Hu <greentime@andestech.com>2018-03-16 03:45:20 -0400
commitd78a62fb347380576c0f6953cc33019b7a8995ea (patch)
tree9559a89fc18a4974a897ddc9ebb6a48affca2522
parentd0d7a6fe427c95178e37bbec40fe6da9753dad8d (diff)
nds32: fix building failed if using older version gcc.
It will be built failed because these options are not supported by older version gcc. Signed-off-by: Greentime Hu <greentime@andestech.com>
-rw-r--r--arch/nds32/Makefile7
1 files 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
5 5
6comma = , 6comma = ,
7 7
8KBUILD_CFLAGS +=-mno-sched-prolog-epilog -mcmodel=large 8KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
9KBUILD_CFLAGS += -mcmodel=large
9 10
10KBUILD_CFLAGS +=$(arch-y) $(tune-y) 11KBUILD_CFLAGS +=$(arch-y) $(tune-y)
11KBUILD_AFLAGS +=$(arch-y) $(tune-y) 12KBUILD_AFLAGS +=$(arch-y) $(tune-y)
@@ -33,9 +34,9 @@ BUILTIN_DTB := n
33endif 34endif
34 35
35ifdef CONFIG_CPU_LITTLE_ENDIAN 36ifdef CONFIG_CPU_LITTLE_ENDIAN
36KBUILD_CFLAGS += -EL 37KBUILD_CFLAGS += $(call cc-option, -EL)
37else 38else
38KBUILD_CFLAGS += -EB 39KBUILD_CFLAGS += $(call cc-option, -EB)
39endif 40endif
40 41
41boot := arch/nds32/boot 42boot := arch/nds32/boot