xref: /linux/arch/parisc/kernel/Makefile (revision 8858ac8e9e9b1894f7bb218bc0035532371b8d7e)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for arch/parisc/kernel
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
6481f93b6SThomas Gleixnerextra-y			:= head.o vmlinux.lds
71da177e4SLinus Torvalds
8c9c2877dSHelge Dellerobj-y	     	:= cache.o pacache.o setup.o pdt.o traps.o time.o irq.o \
91da177e4SLinus Torvalds		   pa7300lc.o syscall.o entry.o sys_parisc.o firmware.o \
108cc28269SHelge Deller		   ptrace.o hardware.o inventory.o drivers.o alternative.o \
111da177e4SLinus Torvalds		   signal.o hpmc.o real2.o parisc_ksyms.o unaligned.o \
12620a53d5SSven Schnelle		   process.o processor.o pdc_cons.o pdc_chassis.o unwind.o \
13620a53d5SSven Schnelle		   patch.o
141da177e4SLinus Torvalds
15d75f054aSHelge Dellerifdef CONFIG_FUNCTION_TRACER
16d75f054aSHelge Deller# Do not profile debug and lowlevel utilities
17d75f054aSHelge DellerCFLAGS_REMOVE_ftrace.o = -pg
18d75f054aSHelge DellerCFLAGS_REMOVE_cache.o = -pg
19d75f054aSHelge DellerCFLAGS_REMOVE_perf.o = -pg
20d75f054aSHelge DellerCFLAGS_REMOVE_unwind.o = -pg
21d75f054aSHelge Dellerendif
22d75f054aSHelge Deller
231da177e4SLinus Torvaldsobj-$(CONFIG_SMP)	+= smp.o
241da177e4SLinus Torvaldsobj-$(CONFIG_PA11)	+= pci-dma.o
251da177e4SLinus Torvaldsobj-$(CONFIG_PCI)	+= pci.o
261da177e4SLinus Torvaldsobj-$(CONFIG_MODULES)	+= module.o
27c7cd8824SHelge Dellerobj-$(CONFIG_64BIT)	+= sys_parisc32.o signal32.o
28548f1176SHelge Dellerobj-$(CONFIG_STACKTRACE)+= stacktrace.o
29527973c8SHelge Dellerobj-$(CONFIG_AUDIT)	+= audit.o
30527973c8SHelge Dellerobj64-$(CONFIG_AUDIT)	+= compat_audit.o
311da177e4SLinus Torvalds# only supported for PCX-W/U in 64-bit mode at the moment
32527973c8SHelge Dellerobj-$(CONFIG_64BIT)	+= perf.o perf_asm.o $(obj64-y)
33bf7b4c1bSHelge Dellerobj-$(CONFIG_PARISC_CPU_TOPOLOGY)	+= topology.o
34d75f054aSHelge Dellerobj-$(CONFIG_FUNCTION_TRACER)		+= ftrace.o
35d75f054aSHelge Dellerobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
36eacbfce1SSven Schnelleobj-$(CONFIG_KGDB)			+= kgdb.o
37*8858ac8eSSven Schnelleobj-$(CONFIG_KPROBES)			+= kprobes.o
38