Skip to content

Commit

Permalink
kbuild,gcov: simplify kernel/gcov/Makefile
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Masahiro Yamada authored and Michal Marek committed Jan 9, 2015
1 parent 842857d commit 3df8094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/gcov/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ else
cc-ver := $(cc-version)
endif

obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o
obj-y := base.o fs.o

ifeq ($(call if-lt, $(cc-ver), 0407),1)
obj-$(CONFIG_GCOV_KERNEL) += gcc_3_4.o
obj-y += gcc_3_4.o
else
obj-$(CONFIG_GCOV_KERNEL) += gcc_4_7.o
obj-y += gcc_4_7.o
endif

0 comments on commit 3df8094

Please sign in to comment.