1#
2# Makefile
3#
4
5ifdef CONFIG_FUNCTION_TRACER
6# Do not trace early boot code and low level code
7CFLAGS_REMOVE_timer.o = -pg
8CFLAGS_REMOVE_intc.o = -pg
9CFLAGS_REMOVE_early_printk.o = -pg
10CFLAGS_REMOVE_heartbeat.o = -pg
11CFLAGS_REMOVE_ftrace.o = -pg
12CFLAGS_REMOVE_process.o = -pg
13endif
14
15extra-y := head.o vmlinux.lds
16
17obj-y += dma.o exceptions.o \
18	hw_exception_handler.o intc.o irq.o \
19	platform.o process.o prom.o ptrace.o \
20	reset.o setup.o signal.o sys_microblaze.o timer.o traps.o unwind.o
21
22obj-y += cpu/
23
24obj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
25obj-$(CONFIG_HEART_BEAT)	+= heartbeat.o
26obj-$(CONFIG_MODULES)		+= microblaze_ksyms.o module.o
27obj-$(CONFIG_MMU)		+= misc.o
28obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
29obj-$(CONFIG_FUNCTION_TRACER)	+= ftrace.o mcount.o
30obj-$(CONFIG_KGDB)		+= kgdb.o
31
32obj-y	+= entry$(MMU).o
33