blob: d331bd7047a18ce29c9d8d866abca5b3ebe8d0bc [file] [log] [blame]
Vineet Guptacfdbc2e2013-01-18 15:12:20 +05301#
2# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License version 2 as
6# published by the Free Software Foundation.
7
Vineet Gupta547f1122013-01-18 15:12:22 +05308# Pass UTS_MACHINE for user_regset definition
9CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
10
Vineet Guptacfdbc2e2013-01-18 15:12:20 +053011obj-y := arcksyms.o setup.o irq.o time.o reset.o ptrace.o entry.o process.o
Vineet Guptae65ab5a2013-01-30 17:46:13 +053012obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o clk.o
Vineet Gupta999159a2013-01-22 17:00:52 +053013obj-y += devtree.o
Vineet Guptacfdbc2e2013-01-18 15:12:20 +053014
Vineet Guptafa1c3ff2013-01-29 19:28:05 +053015obj-$(CONFIG_MODULES) += arcksyms.o module.o
Vineet Gupta41195d22013-01-18 15:12:23 +053016obj-$(CONFIG_SMP) += smp.o
Vineet Gupta854a0d92013-01-22 17:03:19 +053017obj-$(CONFIG_ARC_DW2_UNWIND) += unwind.o
Vineet Gupta4d86dfb2013-01-22 17:03:59 +053018obj-$(CONFIG_KPROBES) += kprobes.o
Vineet Guptafa1c3ff2013-01-29 19:28:05 +053019
Vineet Guptacfdbc2e2013-01-18 15:12:20 +053020obj-$(CONFIG_ARC_FPU_SAVE_RESTORE) += fpu.o
21CFLAGS_fpu.o += -mdpfp
22
Vineet Gupta854a0d92013-01-22 17:03:19 +053023ifdef CONFIG_ARC_DW2_UNWIND
24CFLAGS_ctx_sw.o += -fno-omit-frame-pointer
25obj-y += ctx_sw.o
26else
Vineet Guptacfdbc2e2013-01-18 15:12:20 +053027obj-y += ctx_sw_asm.o
Vineet Gupta854a0d92013-01-22 17:03:19 +053028endif
Vineet Guptacfdbc2e2013-01-18 15:12:20 +053029
30extra-y := vmlinux.lds head.o