aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 74b0cfb1fcc3..6ca9e6ee1e33 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -8,6 +8,14 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
8 sha1.o irq_regs.o reciprocal_div.o argv_split.o \ 8 sha1.o irq_regs.o reciprocal_div.o argv_split.o \
9 proportions.o prio_heap.o ratelimit.o 9 proportions.o prio_heap.o ratelimit.o
10 10
11ifdef CONFIG_FTRACE
12# Do not profile string.o, since it may be used in early boot or vdso
13ORIG_CFLAGS := $(KBUILD_CFLAGS)
14KBUILD_CFLAGS = $(if $(subst string,,$(basename $(notdir $@))), \
15 $(ORIG_CFLAGS), \
16 $(subst -pg,,$(ORIG_CFLAGS)))
17endif
18
11lib-$(CONFIG_MMU) += ioremap.o 19lib-$(CONFIG_MMU) += ioremap.o
12lib-$(CONFIG_SMP) += cpumask.o 20lib-$(CONFIG_SMP) += cpumask.o
13 21