diff options
Diffstat (limited to 'arch/mips/Makefile')
-rw-r--r-- | arch/mips/Makefile | 7 |
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 | |||
51 | ifndef CONFIG_FUNCTION_TRACER | 51 | ifndef CONFIG_FUNCTION_TRACER |
52 | cflags-y := -ffunction-sections | 52 | cflags-y := -ffunction-sections |
53 | endif | 53 | endif |
54 | ifdef 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 | ||
60 | endif | ||
54 | cflags-y += $(call cc-option, -mno-check-zero-division) | 61 | cflags-y += $(call cc-option, -mno-check-zero-division) |
55 | 62 | ||
56 | ifdef CONFIG_32BIT | 63 | ifdef CONFIG_32BIT |