diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-14 21:30:30 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 16:46:09 -0400 |
commit | 6ec562328fda585be2d7f472cfac99d3b44d362a (patch) | |
tree | 82b4be77f89f278b254ebb0f1993b2dc401019d5 /kernel/Makefile | |
parent | 656ee82cc855027b2e994ad218519b09fa652cc1 (diff) |
ftrace: use the new kbuild CFLAGS_REMOVE for kernel directory
This patch removes the Makefile turd and uses the nice CFLAGS_REMOVE macro
in the kernel directory.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index d2f80ea4cd9a..ca2433e84873 100644 --- a/kernel/Makefile +++ b/kernel/Makefile | |||
@@ -11,12 +11,16 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ | |||
11 | hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ | 11 | hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ |
12 | notifier.o ksysfs.o pm_qos_params.o sched_clock.o | 12 | notifier.o ksysfs.o pm_qos_params.o sched_clock.o |
13 | 13 | ||
14 | CFLAGS_REMOVE_sched.o = -pg -mno-spe | ||
15 | |||
14 | ifdef CONFIG_FTRACE | 16 | ifdef CONFIG_FTRACE |
15 | # Do not profile debug utilities | 17 | # Do not trace debug files and internal ftrace files |
16 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 18 | CFLAGS_REMOVE_lockdep.o = -pg |
17 | KBUILD_CFLAGS = $(if $(filter-out lockdep% %debug,$(basename $(notdir $@))), \ | 19 | CFLAGS_REMOVE_lockdep_proc.o = -pg |
18 | $(ORIG_CFLAGS), \ | 20 | CFLAGS_REMOVE_mutex-debug.o = -pg |
19 | $(subst -pg,,$(ORIG_CFLAGS))) | 21 | CFLAGS_REMOVE_rtmutex-debug.o = -pg |
22 | CFLAGS_REMOVE_cgroup-debug.o = -pg | ||
23 | CFLAGS_REMOVE_sched_clock.o = -pg | ||
20 | endif | 24 | endif |
21 | 25 | ||
22 | obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o | 26 | obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o |