summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powermac/Makefile
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@lst.de>2016-03-03 15:26:58 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-03-07 14:53:55 +1100
commit9a7841ae8d6ce9b7a7cf879c9968fcf4c9545563 (patch)
tree3b8c23b066a6e24026f399b34a60da62f0c71ba6 /arch/powerpc/platforms/powermac/Makefile
parentc96f83856f56a66a5d7fd730958bec80c9b5a020 (diff)
downloadblackbird-obmc-linux-9a7841ae8d6ce9b7a7cf879c9968fcf4c9545563.tar.gz
blackbird-obmc-linux-9a7841ae8d6ce9b7a7cf879c9968fcf4c9545563.zip
powerpc/ftrace: Use $(CC_FLAGS_FTRACE) when disabling ftrace
Rather than open-coding -pg whereever we want to disable ftrace, use the existing $(CC_FLAGS_FTRACE) variable. This has the advantage that it will work in future when we use a different set of flags to enable ftrace. Signed-off-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powermac/Makefile')
-rw-r--r--arch/powerpc/platforms/powermac/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/Makefile b/arch/powerpc/platforms/powermac/Makefile
index 52c6ce1cc985..1eb7b45e017d 100644
--- a/arch/powerpc/platforms/powermac/Makefile
+++ b/arch/powerpc/platforms/powermac/Makefile
@@ -2,7 +2,7 @@ CFLAGS_bootx_init.o += -fPIC
ifdef CONFIG_FUNCTION_TRACER
# Do not trace early boot code
-CFLAGS_REMOVE_bootx_init.o = -pg -mno-sched-epilog
+CFLAGS_REMOVE_bootx_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE)
endif
obj-y += pic.o setup.o time.o feature.o pci.o \
OpenPOWER on IntegriCloud