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.
Unified · Split
| @@ -13,10 +13,10 @@ else · 12 unmodified lines | |||
| 13 | cc-ver := $(cc-version) | 13 | cc-ver := $(cc-version) |
| 14 | endif | 14 | endif |
| 15 | 15 | ||
| 16 | obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o | 16 | obj-y := base.o fs.o |
| 17 | 17 | ||
| 18 | ifeq ($(call if-lt, $(cc-ver), 0407),1) | 18 | ifeq ($(call if-lt, $(cc-ver), 0407),1) |
| 19 | obj-$(CONFIG_GCOV_KERNEL) += gcc_3_4.o | 19 | obj-y += gcc_3_4.o |
| 20 | else | 20 | else |
| 21 | obj-$(CONFIG_GCOV_KERNEL) += gcc_4_7.o | 21 | obj-y += gcc_4_7.o |
| 22 | endif | 22 | endif |