aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/gcov
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gcov')
-rw-r--r--kernel/gcov/Makefile23
1 files changed, 4 insertions, 19 deletions
diff --git a/kernel/gcov/Makefile b/kernel/gcov/Makefile
index 69b3515c1806..752d6486b67e 100644
--- a/kernel/gcov/Makefile
+++ b/kernel/gcov/Makefile
@@ -1,22 +1,7 @@
1ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"' 1ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"'
2 2
3# if-lt
4# Usage VAR := $(call if-lt, $(a), $(b))
5# Returns 1 if (a < b)
6if-lt = $(shell [ $(1) -lt $(2) ] && echo 1)
7
8ifeq ($(CONFIG_GCOV_FORMAT_3_4),y)
9 cc-ver := 0304
10else ifeq ($(CONFIG_GCOV_FORMAT_4_7),y)
11 cc-ver := 0407
12else
13 cc-ver := $(cc-version)
14endif
15
16obj-y := base.o fs.o 3obj-y := base.o fs.o
17 4obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_3_4.o
18ifeq ($(call if-lt, $(cc-ver), 0407),1) 5obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_4_7.o
19 obj-y += gcc_3_4.o 6obj-$(CONFIG_GCOV_FORMAT_AUTODETECT) += $(call cc-ifversion, -lt, 0407, \
20else 7 gcc_3_4.o, gcc_4_7.o)
21 obj-y += gcc_4_7.o
22endif