]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/sh/oprofile/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / sh / oprofile / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 obj-$(CONFIG_OPROFILE) += oprofile.o
3
4 CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
5
6 DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
7 oprof.o cpu_buffer.o buffer_sync.o \
8 event_buffer.o oprofile_files.o \
9 oprofilefs.o oprofile_stats.o \
10 timer_int.o )
11
12 ifeq ($(CONFIG_HW_PERF_EVENTS),y)
13 DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
14 endif
15
16 oprofile-y := $(DRIVER_OBJS) common.o backtrace.o