aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed/Makefile
diff options
context:
space:
mode:
authorzhaoxiao <zhaoxiao@uniontech.com>2021-04-20 15:00:52 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-04-21 13:44:35 +0200
commit1b6bc35a01bd6b874165379255929b7badfdecb5 (patch)
treed015171ad07cc697cc37e738c4d6e18e9da5afda /arch/mips/boot/compressed/Makefile
parentMIPS: pci-legacy: revert "use generic pci_enable_resources" (diff)
downloadlinux-dev-1b6bc35a01bd6b874165379255929b7badfdecb5.tar.xz
linux-dev-1b6bc35a01bd6b874165379255929b7badfdecb5.zip
MIPS: Makefile: Replace -pg with CC_FLAGS_FTRACE
This patch replaces the "open-coded" -pg compile flag with a CC_FLAGS_FTRACE makefile variable which architectures can override if a different option should be used for code generation. Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/compressed/Makefile')
-rw-r--r--arch/mips/boot/compressed/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index f93f72bcba97..e4b7839293e1 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -18,7 +18,7 @@ include $(srctree)/arch/mips/Kbuild.platforms
BOOT_HEAP_SIZE := 0x400000
# Disable Function Tracer
-KBUILD_CFLAGS := $(filter-out -pg, $(KBUILD_CFLAGS))
+KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_FTRACE), $(KBUILD_CFLAGS))
KBUILD_CFLAGS := $(filter-out -fstack-protector, $(KBUILD_CFLAGS))