xref: /openbmc/linux/arch/parisc/kernel/Makefile (revision 83146efc)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for arch/parisc/kernel
4#
5
6extra-y		:= vmlinux.lds
7
8obj-y		:= head.o cache.o pacache.o setup.o pdt.o traps.o time.o irq.o \
9		   syscall.o entry.o sys_parisc.o firmware.o \
10		   ptrace.o hardware.o inventory.o drivers.o alternative.o \
11		   signal.o hpmc.o real2.o parisc_ksyms.o unaligned.o \
12		   process.o processor.o pdc_cons.o pdc_chassis.o unwind.o \
13		   patch.o toc.o toc_asm.o
14
15ifdef CONFIG_FUNCTION_TRACER
16# Do not profile debug and lowlevel utilities
17CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
18CFLAGS_REMOVE_cache.o =  $(CC_FLAGS_FTRACE)
19CFLAGS_REMOVE_perf.o = $(CC_FLAGS_FTRACE)
20CFLAGS_REMOVE_unwind.o = $(CC_FLAGS_FTRACE)
21CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
22endif
23
24CFLAGS_REMOVE_sys_parisc.o = -Wmissing-prototypes -Wmissing-declarations
25CFLAGS_REMOVE_sys_parisc32.o = -Wmissing-prototypes -Wmissing-declarations
26
27obj-$(CONFIG_SMP)	+= smp.o
28obj-$(CONFIG_PA11)	+= pci-dma.o
29obj-$(CONFIG_PCI)	+= pci.o
30obj-$(CONFIG_MODULES)	+= module.o
31obj-$(CONFIG_64BIT)	+= sys_parisc32.o signal32.o
32obj-$(CONFIG_STACKTRACE)+= stacktrace.o
33obj-$(CONFIG_AUDIT)	+= audit.o
34obj64-$(CONFIG_AUDIT)	+= compat_audit.o
35# only supported for PCX-W/U in 64-bit mode at the moment
36obj-$(CONFIG_64BIT)	+= perf.o perf_asm.o $(obj64-y)
37obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY)	+= topology.o
38obj-$(CONFIG_FUNCTION_TRACER)		+= ftrace.o
39obj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
40obj-$(CONFIG_JUMP_LABEL)		+= jump_label.o
41obj-$(CONFIG_KGDB)			+= kgdb.o
42obj-$(CONFIG_KPROBES)			+= kprobes.o
43obj-$(CONFIG_KEXEC_CORE)		+= kexec.o relocate_kernel.o
44obj-$(CONFIG_KEXEC_FILE)		+= kexec_file.o
45
46# vdso
47obj-y			+= vdso.o
48obj-$(CONFIG_64BIT)	+= vdso64/
49obj-y			+= vdso32/
50