1 # SPDX-License-Identifier: GPL-2.0
2 subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
4 obj-$(CONFIG_PERF_EVENTS) += callchain.o perf_regs.o
6 obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o bhrb.o
7 obj64-$(CONFIG_PPC_PERF_CTRS) += power4-pmu.o ppc970-pmu.o power5-pmu.o \
8 power5+-pmu.o power6-pmu.o power7-pmu.o \
9 isa207-common.o power8-pmu.o power9-pmu.o
10 obj32-$(CONFIG_PPC_PERF_CTRS) += mpc7450-pmu.o
12 obj-$(CONFIG_PPC_POWERNV) += imc-pmu.o
13 obj-$(CONFIG_FSL_EMB_PERF_EVENT) += core-fsl-emb.o
14 obj-$(CONFIG_FSL_EMB_PERF_EVENT_E500) += e500-pmu.o e6500-pmu.o
16 obj-$(CONFIG_HV_PERF_CTRS) += hv-24x7.o hv-gpci.o hv-common.o
18 obj-$(CONFIG_PPC_8xx_PERF_EVENT) += 8xx-pmu.o
20 obj-$(CONFIG_PPC64) += $(obj64-y)
21 obj-$(CONFIG_PPC32) += $(obj32-y)