aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-05-14 21:30:31 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 16:46:23 -0400
commit654e4787689faffdd2137fe91f59fd3ef3363ad2 (patch)
tree480028277bd301d9ea65c8eb43e5381a68c3cd5d /lib/Makefile
parent6ec562328fda585be2d7f472cfac99d3b44d362a (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>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile8
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
11ifdef CONFIG_FTRACE 11ifdef 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
13CFLAGS_REMOVE_string.o = -pg
13# Also do not profile any debug utilities 14# Also do not profile any debug utilities
14ORIG_CFLAGS := $(KBUILD_CFLAGS) 15CFLAGS_REMOVE_spinlock_debug.o = -pg
15KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \ 16CFLAGS_REMOVE_list_debug.o = -pg
16 $(ORIG_CFLAGS), \ 17CFLAGS_REMOVE_debugobjects.o = -pg
17 $(subst -pg,,$(ORIG_CFLAGS)))
18endif 18endif
19 19
20lib-$(CONFIG_MMU) += ioremap.o 20lib-$(CONFIG_MMU) += ioremap.o