aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r--arch/mips/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 3725ee923d05..d2c39fdcdfeb 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -51,6 +51,13 @@ endif
51ifndef CONFIG_FUNCTION_TRACER 51ifndef CONFIG_FUNCTION_TRACER
52cflags-y := -ffunction-sections 52cflags-y := -ffunction-sections
53endif 53endif
54ifdef CONFIG_FUNCTION_GRAPH_TRACER
55 ifndef KBUILD_MCOUNT_RA_ADDRESS
56 ifeq ($(call cc-option-yn,-mmcount-ra-address), y)
57 cflags-y += -mmcount-ra-address -DKBUILD_MCOUNT_RA_ADDRESS
58 endif
59 endif
60endif
54cflags-y += $(call cc-option, -mno-check-zero-division) 61cflags-y += $(call cc-option, -mno-check-zero-division)
55 62
56ifdef CONFIG_32BIT 63ifdef CONFIG_32BIT