aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/Makefile')
-rw-r--r--arch/nds32/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile
index 63f4f173e5f4..9f525ed70049 100644
--- a/arch/nds32/Makefile
+++ b/arch/nds32/Makefile
@@ -5,6 +5,10 @@ KBUILD_DEFCONFIG := defconfig
comma = ,
+ifdef CONFIG_FUNCTION_TRACER
+arch-y += -malways-save-lp -mno-relax
+endif
+
KBUILD_CFLAGS += $(call cc-option, -mno-sched-prolog-epilog)
KBUILD_CFLAGS += -mcmodel=large
@@ -43,7 +47,7 @@ CHECKFLAGS += -D__NDS32_EB__
endif
boot := arch/nds32/boot
-core-$(BUILTIN_DTB) += $(boot)/dts/
+core-y += $(boot)/dts/
.PHONY: FORCE