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
1313 cc-ver := $(cc-version)
1414 endif
1515
16−obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o
16+obj-y := base.o fs.o
1717
1818 ifeq ($(call if-lt, $(cc-ver), 0407),1)
19− obj-$(CONFIG_GCOV_KERNEL) += gcc_3_4.o
19+ obj-y += gcc_3_4.o
2020 else
21− obj-$(CONFIG_GCOV_KERNEL) += gcc_4_7.o
21+ obj-y += gcc_4_7.o
2222 endif