treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arc / kernel / Makefile
blob75539670431a63c91b7e605bcf8467533469e93e
1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
6 # Pass UTS_MACHINE for user_regset definition
7 CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
9 obj-y := arcksyms.o setup.o irq.o reset.o ptrace.o process.o devtree.o
10 obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o
11 obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o
12 obj-$(CONFIG_ISA_ARCV2) += entry-arcv2.o intc-arcv2.o
14 obj-$(CONFIG_MODULES) += arcksyms.o module.o
15 obj-$(CONFIG_SMP) += smp.o
16 obj-$(CONFIG_ARC_MCIP) += mcip.o
17 obj-$(CONFIG_ARC_DW2_UNWIND) += unwind.o
18 obj-$(CONFIG_KPROBES) += kprobes.o
19 obj-$(CONFIG_ARC_EMUL_UNALIGNED) += unaligned.o
20 obj-$(CONFIG_KGDB) += kgdb.o
21 obj-$(CONFIG_ARC_METAWARE_HLINK) += arc_hostlink.o
22 obj-$(CONFIG_PERF_EVENTS) += perf_event.o
23 obj-$(CONFIG_JUMP_LABEL) += jump_label.o
25 obj-$(CONFIG_ARC_FPU_SAVE_RESTORE) += fpu.o
26 ifdef CONFIG_ISA_ARCOMPACT
27 CFLAGS_fpu.o += -mdpfp
28 endif
30 ifdef CONFIG_ARC_DW2_UNWIND
31 CFLAGS_ctx_sw.o += -fno-omit-frame-pointer
32 obj-y += ctx_sw.o
33 else
34 obj-y += ctx_sw_asm.o
35 endif
37 extra-y := vmlinux.lds head.o