diff options
-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 |