blob: 39688dc9f1811a498e9a3e852343b9792fee8eb8 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# SPDX-License-Identifier: GPL-2.0
2obj-$(CONFIG_OPROFILE) += oprofile.o
3
4DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
5 oprof.o cpu_buffer.o buffer_sync.o \
6 event_buffer.o oprofile_files.o \
7 oprofilefs.o oprofile_stats.o \
8 timer_int.o )
9
10ifeq ($(CONFIG_HW_PERF_EVENTS),y)
11DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
12endif
13
14oprofile-y := $(DRIVER_OBJS) common.o