blob: dd71637437f4f6b1ff307d385b8a1ff293959075 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Michal Simek5f8ffb52009-03-27 14:25:51 +01002#
3# Makefile
4#
5
Michal Simek2fd7c762009-11-16 09:40:14 +01006ifdef 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_early_printk.o = -pg
Michal Simek2fd7c762009-11-16 09:40:14 +010011CFLAGS_REMOVE_ftrace.o = -pg
Michal Simek9e1491d2011-03-18 13:52:27 +010012CFLAGS_REMOVE_process.o = -pg
Michal Simek2fd7c762009-11-16 09:40:14 +010013endif
14
Michal Simek5f8ffb52009-03-27 14:25:51 +010015extra-y := head.o vmlinux.lds
16
Michal Simekccfe27d2010-01-14 11:21:02 +010017obj-y += dma.o exceptions.o \
Zubair Lutfullah Kakakhel0547dc72016-11-14 12:13:45 +000018 hw_exception_handler.o irq.o \
Rob Herring45df5612018-06-19 15:36:20 -060019 process.o prom.o ptrace.o \
Steven J. Magnanice3266c2010-04-27 12:37:54 -050020 reset.o setup.o signal.o sys_microblaze.o timer.o traps.o unwind.o
Michal Simek5f8ffb52009-03-27 14:25:51 +010021
22obj-y += cpu/
23
Michal Simek5f8ffb52009-03-27 14:25:51 +010024obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o
Michal Simek4b2368f2009-05-26 16:30:32 +020025obj-$(CONFIG_MMU) += misc.o
Michal Simek24b45a12009-11-10 15:57:01 +010026obj-$(CONFIG_STACKTRACE) += stacktrace.o
Michal Simek7d241ff2009-12-10 14:15:44 +010027obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o
Michal Simek2d5973c2010-08-03 11:45:08 +020028obj-$(CONFIG_KGDB) += kgdb.o
Michal Simek5f8ffb52009-03-27 14:25:51 +010029
Sam Ravnborg950b2602009-07-24 09:04:49 +020030obj-y += entry$(MMU).o