blob: e5de34d00b1adad3409bd11b07fae826167e59c5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for arch/parisc/kernel
4#
5
Thomas Gleixner481f93b2012-05-07 11:28:13 +02006extra-y := head.o vmlinux.lds
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Helge Dellerc9c28772017-05-11 22:24:15 +02008obj-y := cache.o pacache.o setup.o pdt.o traps.o time.o irq.o \
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 pa7300lc.o syscall.o entry.o sys_parisc.o firmware.o \
Matthew Wilcox64ac24e2008-03-07 21:55:58 -050010 ptrace.o hardware.o inventory.o drivers.o \
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 signal.o hpmc.o real2.o parisc_ksyms.o unaligned.o \
Helge Dellerbf7b4c12017-09-21 21:55:01 +020012 process.o processor.o pdc_cons.o pdc_chassis.o unwind.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Helge Dellerd75f0542009-02-09 00:43:36 +010014ifdef CONFIG_FUNCTION_TRACER
15# Do not profile debug and lowlevel utilities
16CFLAGS_REMOVE_ftrace.o = -pg
17CFLAGS_REMOVE_cache.o = -pg
Helge Dellerd75f0542009-02-09 00:43:36 +010018CFLAGS_REMOVE_perf.o = -pg
Helge Dellerd75f0542009-02-09 00:43:36 +010019CFLAGS_REMOVE_unwind.o = -pg
20endif
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-$(CONFIG_SMP) += smp.o
23obj-$(CONFIG_PA11) += pci-dma.o
24obj-$(CONFIG_PCI) += pci.o
25obj-$(CONFIG_MODULES) += module.o
Helge Dellerc7cd8822018-04-13 21:54:37 +020026obj-$(CONFIG_64BIT) += sys_parisc32.o signal32.o
Helge Deller548f1172009-02-06 21:50:39 +010027obj-$(CONFIG_STACKTRACE)+= stacktrace.o
Helge Deller527973c2013-10-15 19:25:46 +020028obj-$(CONFIG_AUDIT) += audit.o
29obj64-$(CONFIG_AUDIT) += compat_audit.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070030# only supported for PCX-W/U in 64-bit mode at the moment
Helge Deller527973c2013-10-15 19:25:46 +020031obj-$(CONFIG_64BIT) += perf.o perf_asm.o $(obj64-y)
Helge Dellerbf7b4c12017-09-21 21:55:01 +020032obj-$(CONFIG_PARISC_CPU_TOPOLOGY) += topology.o
Helge Dellerd75f0542009-02-09 00:43:36 +010033obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o
34obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o