mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
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>
This commit is contained in:
parent
d0d7a6fe42
commit
d78a62fb34
1 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,8 @@ KBUILD_DEFCONFIG := defconfig
|
||||||
|
|
||||||
comma = ,
|
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_CFLAGS +=$(arch-y) $(tune-y)
|
||||||
KBUILD_AFLAGS +=$(arch-y) $(tune-y)
|
KBUILD_AFLAGS +=$(arch-y) $(tune-y)
|
||||||
|
@ -33,9 +34,9 @@ BUILTIN_DTB := n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_CPU_LITTLE_ENDIAN
|
ifdef CONFIG_CPU_LITTLE_ENDIAN
|
||||||
KBUILD_CFLAGS += -EL
|
KBUILD_CFLAGS += $(call cc-option, -EL)
|
||||||
else
|
else
|
||||||
KBUILD_CFLAGS += -EB
|
KBUILD_CFLAGS += $(call cc-option, -EB)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
boot := arch/nds32/boot
|
boot := arch/nds32/boot
|
||||||
|
|
Loading…
Add table
Reference in a new issue