diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-14 21:30:31 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 16:46:23 -0400 |
commit | 654e4787689faffdd2137fe91f59fd3ef3363ad2 (patch) | |
tree | 480028277bd301d9ea65c8eb43e5381a68c3cd5d | |
parent | 6ec562328fda585be2d7f472cfac99d3b44d362a (diff) |
ftrace: use the new kbuild CFLAGS_REMOVE for lib directory
This patch removes the Makefile turd and uses the nice CFLAGS_REMOVE macro
in the lib 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>
-rw-r--r-- | lib/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Makefile b/lib/Makefile index d97ad1100b6f..4b836a53c08f 100644 --- a/lib/Makefile +++ b/lib/Makefile | |||
@@ -10,11 +10,11 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \ | |||
10 | 10 | ||
11 | ifdef CONFIG_FTRACE | 11 | ifdef CONFIG_FTRACE |
12 | # Do not profile string.o, since it may be used in early boot or vdso | 12 | # Do not profile string.o, since it may be used in early boot or vdso |
13 | CFLAGS_REMOVE_string.o = -pg | ||
13 | # Also do not profile any debug utilities | 14 | # Also do not profile any debug utilities |
14 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 15 | CFLAGS_REMOVE_spinlock_debug.o = -pg |
15 | KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \ | 16 | CFLAGS_REMOVE_list_debug.o = -pg |
16 | $(ORIG_CFLAGS), \ | 17 | CFLAGS_REMOVE_debugobjects.o = -pg |
17 | $(subst -pg,,$(ORIG_CFLAGS))) | ||
18 | endif | 18 | endif |
19 | 19 | ||
20 | lib-$(CONFIG_MMU) += ioremap.o | 20 | lib-$(CONFIG_MMU) += ioremap.o |