| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 | 
| 2 | obj-$(CONFIG_OPROFILE) += oprofile.o | ||||
| 3 | |||||
| 4 | DRIVER_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 | |||||
| 10 | ifeq ($(CONFIG_HW_PERF_EVENTS),y) | ||||
| 11 | DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o) | ||||
| 12 | endif | ||||
| 13 | |||||
| 14 | oprofile-y := $(DRIVER_OBJS) common.o | ||||