Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 2 | # |
| 3 | # Makefile |
| 4 | # |
| 5 | |
Michal Simek | 2fd7c76 | 2009-11-16 09:40:14 +0100 | [diff] [blame] | 6 | ifdef CONFIG_FUNCTION_TRACER |
| 7 | # Do not trace early boot code and low level code |
| 8 | CFLAGS_REMOVE_timer.o = -pg |
| 9 | CFLAGS_REMOVE_intc.o = -pg |
| 10 | CFLAGS_REMOVE_early_printk.o = -pg |
Michal Simek | 2fd7c76 | 2009-11-16 09:40:14 +0100 | [diff] [blame] | 11 | CFLAGS_REMOVE_ftrace.o = -pg |
Michal Simek | 9e1491d | 2011-03-18 13:52:27 +0100 | [diff] [blame] | 12 | CFLAGS_REMOVE_process.o = -pg |
Michal Simek | 2fd7c76 | 2009-11-16 09:40:14 +0100 | [diff] [blame] | 13 | endif |
| 14 | |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 15 | extra-y := head.o vmlinux.lds |
| 16 | |
Michal Simek | ccfe27d | 2010-01-14 11:21:02 +0100 | [diff] [blame] | 17 | obj-y += dma.o exceptions.o \ |
Zubair Lutfullah Kakakhel | 0547dc7 | 2016-11-14 12:13:45 +0000 | [diff] [blame] | 18 | hw_exception_handler.o irq.o \ |
Rob Herring | 45df561 | 2018-06-19 15:36:20 -0600 | [diff] [blame] | 19 | process.o prom.o ptrace.o \ |
Steven J. Magnani | ce3266c | 2010-04-27 12:37:54 -0500 | [diff] [blame] | 20 | reset.o setup.o signal.o sys_microblaze.o timer.o traps.o unwind.o |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 21 | |
| 22 | obj-y += cpu/ |
| 23 | |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 24 | obj-$(CONFIG_MODULES) += microblaze_ksyms.o module.o |
Michal Simek | 4b2368f | 2009-05-26 16:30:32 +0200 | [diff] [blame] | 25 | obj-$(CONFIG_MMU) += misc.o |
Michal Simek | 24b45a1 | 2009-11-10 15:57:01 +0100 | [diff] [blame] | 26 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
Michal Simek | 7d241ff | 2009-12-10 14:15:44 +0100 | [diff] [blame] | 27 | obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o mcount.o |
Michal Simek | 2d5973c | 2010-08-03 11:45:08 +0200 | [diff] [blame] | 28 | obj-$(CONFIG_KGDB) += kgdb.o |
Michal Simek | 5f8ffb5 | 2009-03-27 14:25:51 +0100 | [diff] [blame] | 29 | |
Sam Ravnborg | 950b260 | 2009-07-24 09:04:49 +0200 | [diff] [blame] | 30 | obj-y += entry$(MMU).o |