summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/oprofile/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/oprofile/Makefile')
-rw-r--r--kernel/arch/arm/oprofile/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/arch/arm/oprofile/Makefile b/kernel/arch/arm/oprofile/Makefile
new file mode 100644
index 000000000..b2215c61c
--- /dev/null
+++ b/kernel/arch/arm/oprofile/Makefile
@@ -0,0 +1,13 @@
+obj-$(CONFIG_OPROFILE) += oprofile.o
+
+DRIVER_OBJS = $(addprefix ../../../drivers/oprofile/, \
+ oprof.o cpu_buffer.o buffer_sync.o \
+ event_buffer.o oprofile_files.o \
+ oprofilefs.o oprofile_stats.o \
+ timer_int.o )
+
+ifeq ($(CONFIG_HW_PERF_EVENTS),y)
+DRIVER_OBJS += $(addprefix ../../../drivers/oprofile/, oprofile_perf.o)
+endif
+
+oprofile-y := $(DRIVER_OBJS) common.o