]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: use the new kbuild CFLAGS_REMOVE for lib directory
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 15 May 2008 01:30:31 +0000 (21:30 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 20:46:23 +0000 (22:46 +0200)
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>
lib/Makefile

index d97ad1100b6ff239d103fcab378be63e0c33e499..4b836a53c08f1dcf84b060c3480f6a9155c3960f 100644 (file)
@@ -10,11 +10,11 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
 
 ifdef CONFIG_FTRACE
 # Do not profile string.o, since it may be used in early boot or vdso
+CFLAGS_REMOVE_string.o = -pg
 # Also do not profile any debug utilities
-ORIG_CFLAGS := $(KBUILD_CFLAGS)
-KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \
-       $(ORIG_CFLAGS), \
-       $(subst -pg,,$(ORIG_CFLAGS)))
+CFLAGS_REMOVE_spinlock_debug.o = -pg
+CFLAGS_REMOVE_list_debug.o = -pg
+CFLAGS_REMOVE_debugobjects.o = -pg
 endif
 
 lib-$(CONFIG_MMU) += ioremap.o