aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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