xref: /openbmc/linux/arch/arc/kernel/Makefile (revision 4d86dfbbda09b3c67bcaeb370f22a2cc7f39205b)
1cfdbc2e1SVineet Gupta#
2cfdbc2e1SVineet Gupta# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3cfdbc2e1SVineet Gupta#
4cfdbc2e1SVineet Gupta# This program is free software; you can redistribute it and/or modify
5cfdbc2e1SVineet Gupta# it under the terms of the GNU General Public License version 2 as
6cfdbc2e1SVineet Gupta# published by the Free Software Foundation.
7cfdbc2e1SVineet Gupta
8547f1125SVineet Gupta# Pass UTS_MACHINE for user_regset definition
9547f1125SVineet GuptaCFLAGS_ptrace.o		+= -DUTS_MACHINE='"$(UTS_MACHINE)"'
10547f1125SVineet Gupta
11cfdbc2e1SVineet Guptaobj-y	:= arcksyms.o setup.o irq.o time.o reset.o ptrace.o entry.o process.o
12e65ab5a8SVineet Guptaobj-y	+= signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o clk.o
13999159a5SVineet Guptaobj-y	+= devtree.o
14cfdbc2e1SVineet Gupta
15fa1c3ff9SVineet Guptaobj-$(CONFIG_MODULES)			+= arcksyms.o module.o
1641195d23SVineet Guptaobj-$(CONFIG_SMP) 			+= smp.o
17854a0d95SVineet Guptaobj-$(CONFIG_ARC_DW2_UNWIND)		+= unwind.o
18*4d86dfbbSVineet Guptaobj-$(CONFIG_KPROBES)      		+= kprobes.o
19fa1c3ff9SVineet Gupta
20cfdbc2e1SVineet Guptaobj-$(CONFIG_ARC_FPU_SAVE_RESTORE)	+= fpu.o
21cfdbc2e1SVineet GuptaCFLAGS_fpu.o   += -mdpfp
22cfdbc2e1SVineet Gupta
23854a0d95SVineet Guptaifdef CONFIG_ARC_DW2_UNWIND
24854a0d95SVineet GuptaCFLAGS_ctx_sw.o += -fno-omit-frame-pointer
25854a0d95SVineet Guptaobj-y += ctx_sw.o
26854a0d95SVineet Guptaelse
27cfdbc2e1SVineet Guptaobj-y += ctx_sw_asm.o
28854a0d95SVineet Guptaendif
29cfdbc2e1SVineet Gupta
30cfdbc2e1SVineet Guptaextra-y := vmlinux.lds head.o
31