Skip to contentSkip to conversation

perfmon3: Makefiles

PATCH In review [email protected] 1 participant 1 message Oct 17, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 24/24 perfmon3: Makefiles

This patch adds the makefiles for the perfmon generic and x86 code.

--

Makefile +2 -0
Index: o3/Makefile
===================================================================
@@ -621,6 +621,8 @@
 ifeq ($(KBUILD_EXTMOD),)
 core-y		+= kernel/ mm/ fs/ ipc/ security/ crypto/ block/
 
+core-$(CONFIG_PERFMON) += perfmon/
+
 vmlinux-dirs	:= $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
 		     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
 		     $(net-y) $(net-m) $(libs-y) $(libs-m)))
perfmon/Makefile new file +10 -0
Index: o3/perfmon/Makefile
===================================================================
@@ -0,0 +1,10 @@
+#
+# Copyright (c) 2005-2006 Hewlett-Packard Development Company, L.P.
+# Contributed by Stephane Eranian <[email protected]>
+#
+obj-y =	perfmon_ctx.o perfmon_file.o      \
+	perfmon_attach.o perfmon_res.o    \
+	perfmon_init.o perfmon_activate.o \
+	perfmon_intr.o perfmon_rw.o	  \
+	perfmon_ctxsw.o perfmon_pmu.o	  \
+	perfmon_syscalls.o perfmon_sysfs.o
arch/x86/Kconfig +2 -0
Index: o3/arch/x86/Kconfig
===================================================================
@@ -1378,6 +1378,8 @@
 
 	  If unsure, say Y.
 
+source "arch/x86/perfmon/Kconfig"
+
 endmenu
 
 config ARCH_ENABLE_MEMORY_HOTPLUG
arch/x86/Makefile +3 -0
Index: o3/arch/x86/Makefile
===================================================================
@@ -150,6 +150,9 @@
 core-y += arch/x86/kernel/
 core-y += arch/x86/mm/
 
+# perfmon support
+core-$(CONFIG_PERFMON) += arch/x86/perfmon/
+
 # Remaining sub architecture files
 core-y += $(mcore-y)