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