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>
This commit is contained in:
Steven Rostedt 2008-05-14 21:30:31 -04:00 committed by Thomas Gleixner
parent 6ec562328f
commit 654e478768
1 changed files with 4 additions and 4 deletions

View File

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