History

kbuild,gcov: simplify kernel/gcov/Makefile

Kbuild descends into kernel/gcov/ directory only when CONFIG_GCOV_KERNEL is enabled. (See kernel/Makefile) CONFIG_GCOV_KERNEL check can be omitted in kernel/gcov/Makefile.

Masahiro Yamada committed 11 years ago

Commit 3df80941 parent 842857d1 file · +3 −3Browse files

Unified · Split

kernel/gcov/Makefile+3−3
@@ -13,10 +13,10 @@ else · 12 unmodified lines
13 cc-ver := $(cc-version)13 cc-ver := $(cc-version)
14endif14endif
15 15
16obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o16obj-y := base.o fs.o
17 17
18ifeq ($(call if-lt, $(cc-ver), 0407),1)18ifeq ($(call if-lt, $(cc-ver), 0407),1)
19 obj-$(CONFIG_GCOV_KERNEL) += gcc_3_4.o19 obj-y += gcc_3_4.o
20else20else
21 obj-$(CONFIG_GCOV_KERNEL) += gcc_4_7.o21 obj-y += gcc_4_7.o
22endif22endif