1# SPDX-License-Identifier: GPL-2.0
2subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
3
4ccflags-$(CONFIG_PPC64)	:= $(NO_MINIMAL_TOC)
5
6obj-$(CONFIG_OPROFILE) += oprofile.o
7
8DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
9		oprof.o cpu_buffer.o buffer_sync.o \
10		event_buffer.o oprofile_files.o \
11		oprofilefs.o oprofile_stats.o \
12		timer_int.o )
13
14oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
15oprofile-$(CONFIG_OPROFILE_CELL) += op_model_cell.o \
16		cell/spu_profiler.o cell/vma_map.o \
17		cell/spu_task_sync.o
18oprofile-$(CONFIG_PPC_BOOK3S_64) += op_model_power4.o op_model_pa6t.o
19oprofile-$(CONFIG_FSL_EMB_PERFMON) += op_model_fsl_emb.o
20oprofile-$(CONFIG_6xx) += op_model_7450.o
21