blob: 7a7834c39f64580443bdd24a8f79da75044ce747 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Michael Ellermanba55bd72009-06-09 20:48:51 +00002subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
3
Anton Blanchard1fbe9cf2012-11-26 17:41:08 +00004ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC)
Anton Blanchard8555a002006-06-10 20:23:54 +10005
Stephen Rothwelld9e5b832005-09-19 23:15:51 +10006obj-$(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
Brian Rogan6c6bd752006-03-27 11:57:01 +110014oprofile-y := $(DRIVER_OBJS) common.o backtrace.o
Bob Nelson14748552007-07-20 21:39:53 +020015oprofile-$(CONFIG_OPROFILE_CELL) += op_model_cell.o \
16 cell/spu_profiler.o cell/vma_map.o \
17 cell/spu_task_sync.o
Michael Ellerman086dddc2014-07-10 12:29:23 +100018oprofile-$(CONFIG_PPC_BOOK3S_64) += op_model_power4.o op_model_pa6t.o
Andy Fleming39aef682008-02-04 18:27:55 -060019oprofile-$(CONFIG_FSL_EMB_PERFMON) += op_model_fsl_emb.o
Andy Flemingdd6c89f2006-10-27 15:06:32 -050020oprofile-$(CONFIG_6xx) += op_model_7450.o