It will be built failed because these options are not supported by older
version gcc.
Signed-off-by: Greentime Hu <greentime@andestech.com>
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)
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