diff options
Diffstat (limited to 'arch/sh/oprofile/Makefile')
-rw-r--r-- | arch/sh/oprofile/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/sh/oprofile/Makefile b/arch/sh/oprofile/Makefile index 8e6eec91c14c..ce3b119021e7 100644 --- a/arch/sh/oprofile/Makefile +++ b/arch/sh/oprofile/Makefile | |||
@@ -1,13 +1,15 @@ | |||
1 | obj-$(CONFIG_OPROFILE) += oprofile.o | 1 | obj-$(CONFIG_OPROFILE) += oprofile.o |
2 | 2 | ||
3 | CFLAGS_common.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' | ||
4 | |||
3 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ | 5 | DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \ |
4 | oprof.o cpu_buffer.o buffer_sync.o \ | 6 | oprof.o cpu_buffer.o buffer_sync.o \ |
5 | event_buffer.o oprofile_files.o \ | 7 | event_buffer.o oprofile_files.o \ |
6 | oprofilefs.o oprofile_stats.o \ | 8 | oprofilefs.o oprofile_stats.o \ |
7 | timer_int.o ) | 9 | timer_int.o ) |
8 | 10 | ||
9 | oprofile-y := $(DRIVER_OBJS) common.o backtrace.o | 11 | ifeq ($(CONFIG_HW_PERF_EVENTS),y) |
12 | DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o) | ||
13 | endif | ||
10 | 14 | ||
11 | oprofile-$(CONFIG_CPU_SUBTYPE_SH7750S) += op_model_sh7750.o | 15 | oprofile-y := $(DRIVER_OBJS) common.o backtrace.o |
12 | oprofile-$(CONFIG_CPU_SUBTYPE_SH7750) += op_model_sh7750.o | ||
13 | oprofile-$(CONFIG_CPU_SUBTYPE_SH7091) += op_model_sh7750.o | ||