Commit 654e4787689faffdd2137fe91f59fd3ef3363ad2
Committed by
Thomas Gleixner
1 parent
6ec562328f
Exists in
master
and in
20 other branches
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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
lib/Makefile
... | ... | @@ -10,11 +10,11 @@ |
10 | 10 | |
11 | 11 | ifdef CONFIG_FTRACE |
12 | 12 | # Do not profile string.o, since it may be used in early boot or vdso |
13 | +CFLAGS_REMOVE_string.o = -pg | |
13 | 14 | # Also do not profile any debug utilities |
14 | -ORIG_CFLAGS := $(KBUILD_CFLAGS) | |
15 | -KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \ | |
16 | - $(ORIG_CFLAGS), \ | |
17 | - $(subst -pg,,$(ORIG_CFLAGS))) | |
15 | +CFLAGS_REMOVE_spinlock_debug.o = -pg | |
16 | +CFLAGS_REMOVE_list_debug.o = -pg | |
17 | +CFLAGS_REMOVE_debugobjects.o = -pg | |
18 | 18 | endif |
19 | 19 | |
20 | 20 | lib-$(CONFIG_MMU) += ioremap.o |