summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/kernel/Makefile')
-rw-r--r--arch/arc/kernel/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arc/kernel/Makefile b/arch/arc/kernel/Makefile
index 46c15ff97e9..38e4715f334 100644
--- a/arch/arc/kernel/Makefile
+++ b/arch/arc/kernel/Makefile
@@ -14,10 +14,16 @@ obj-y += devtree.o
obj-$(CONFIG_MODULES) += arcksyms.o module.o
obj-$(CONFIG_SMP) += smp.o
+obj-$(CONFIG_ARC_DW2_UNWIND) += unwind.o
obj-$(CONFIG_ARC_FPU_SAVE_RESTORE) += fpu.o
CFLAGS_fpu.o += -mdpfp
+ifdef CONFIG_ARC_DW2_UNWIND
+CFLAGS_ctx_sw.o += -fno-omit-frame-pointer
+obj-y += ctx_sw.o
+else
obj-y += ctx_sw_asm.o
+endif
extra-y := vmlinux.lds head.o