diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-12-25 00:31:25 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-01-09 11:25:44 -0500 |
commit | 842857dedc40df7c86e990b7153a069d0040e552 (patch) | |
tree | e05e0ab048ebf070e86ef4d89d627c056693e3da /kernel/gcov | |
parent | 665d92e38f65d70796aad2b8e49e42e80815d4a4 (diff) |
kbuild,gcov: remove unnecessary workaround
Since commit 371fdc77af44 (kbuild: collect shorthands into
scripts/Kbuild.include), scripts/Makefile.clean includes
scripts/Kbuild.include.
The workaround and the comment block in kernel/gcov/Makefile
are no longer necessary.
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>
Diffstat (limited to 'kernel/gcov')
-rw-r--r-- | kernel/gcov/Makefile | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/kernel/gcov/Makefile b/kernel/gcov/Makefile index 6f01fa3d9ca1..42323c7ec106 100644 --- a/kernel/gcov/Makefile +++ b/kernel/gcov/Makefile | |||
@@ -10,18 +10,7 @@ ifeq ($(CONFIG_GCOV_FORMAT_3_4),y) | |||
10 | else ifeq ($(CONFIG_GCOV_FORMAT_4_7),y) | 10 | else ifeq ($(CONFIG_GCOV_FORMAT_4_7),y) |
11 | cc-ver := 0407 | 11 | cc-ver := 0407 |
12 | else | 12 | else |
13 | # Use cc-version if available, otherwise set 0 | 13 | cc-ver := $(cc-version) |
14 | # | ||
15 | # scripts/Kbuild.include, which contains cc-version function, is not included | ||
16 | # during make clean "make -f scripts/Makefile.clean obj=kernel/gcov" | ||
17 | # Meaning cc-ver is empty causing if-lt test to fail with | ||
18 | # "/bin/sh: line 0: [: -lt: unary operator expected" error mesage. | ||
19 | # This has no affect on the clean phase, but the error message could be | ||
20 | # confusing/annoying. So this dummy workaround sets cc-ver to zero if cc-version | ||
21 | # is not available. We can probably move if-lt to Kbuild.include, so it's also | ||
22 | # not defined during clean or to include Kbuild.include in | ||
23 | # scripts/Makefile.clean. But the following workaround seems least invasive. | ||
24 | cc-ver := $(if $(cc-version),$(cc-version),0) | ||
25 | endif | 14 | endif |
26 | 15 | ||
27 | obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o | 16 | obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o |