aboutsummaryrefslogtreecommitdiff
path: root/arch/xtensa/boot/lib
diff options
context:
space:
mode:
authorMax Filippov2013-05-24 07:02:25 +0400
committerChris Zankel2013-07-08 01:18:57 -0700
commit478ba61afccd3a4d7ca662cadff1d35d183fe67d (patch)
tree9458a98aa39dba5e195241a48a4c31435a4c92e3 /arch/xtensa/boot/lib
parent220f5354089b27e8eeaa8658806dabc59ce55729 (diff)
xtensa: add static function tracer support
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/boot/lib')
-rw-r--r--arch/xtensa/boot/lib/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/boot/lib/Makefile b/arch/xtensa/boot/lib/Makefile
index ad8952e8a07f..6868f2ca6af8 100644
--- a/arch/xtensa/boot/lib/Makefile
+++ b/arch/xtensa/boot/lib/Makefile
@@ -7,6 +7,13 @@ zlib := inffast.c inflate.c inftrees.c
lib-y += $(zlib:.c=.o) zmem.o
ccflags-y := -Ilib/zlib_inflate
+ifdef CONFIG_FUNCTION_TRACER
+CFLAGS_REMOVE_inflate.o = -pg
+CFLAGS_REMOVE_zmem.o = -pg
+CFLAGS_REMOVE_inftrees.o = -pg
+CFLAGS_REMOVE_inffast.o = -pg
+endif
+
quiet_cmd_copy_zlib = COPY $@
cmd_copy_zlib = cat $< > $@