diff options
| -rw-r--r-- | arch/nds32/Makefile | 7 |
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 | ||
| 6 | comma = , | 6 | comma = , |
| 7 | 7 | ||
| 8 | KBUILD_CFLAGS +=-mno-sched-prolog-epilog -mcmodel=large | 8 | KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog) |
| 9 | KBUILD_CFLAGS += -mcmodel=large | ||
| 9 | 10 | ||
| 10 | KBUILD_CFLAGS +=$(arch-y) $(tune-y) | 11 | KBUILD_CFLAGS +=$(arch-y) $(tune-y) |
| 11 | KBUILD_AFLAGS +=$(arch-y) $(tune-y) | 12 | KBUILD_AFLAGS +=$(arch-y) $(tune-y) |
| @@ -33,9 +34,9 @@ BUILTIN_DTB := n | |||
| 33 | endif | 34 | endif |
| 34 | 35 | ||
| 35 | ifdef CONFIG_CPU_LITTLE_ENDIAN | 36 | ifdef CONFIG_CPU_LITTLE_ENDIAN |
| 36 | KBUILD_CFLAGS += -EL | 37 | KBUILD_CFLAGS += $(call cc-option, -EL) |
| 37 | else | 38 | else |
| 38 | KBUILD_CFLAGS += -EB | 39 | KBUILD_CFLAGS += $(call cc-option, -EB) |
| 39 | endif | 40 | endif |
| 40 | 41 | ||
| 41 | boot := arch/nds32/boot | 42 | boot := arch/nds32/boot |
