diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-12-25 00:31:24 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-01-09 11:25:44 -0500 |
commit | 665d92e38f65d70796aad2b8e49e42e80815d4a4 (patch) | |
tree | 3328f014ac8a4a0a2ba9c24cdc1961d7407ef43a /Documentation | |
parent | dd33c03b18b3f2db791eb6a17c37d2de66e4de18 (diff) |
kbuild: do not add $(call ...) to invoke cc-version or cc-fullversion
The macros cc-version, cc-fullversion and ld-version take no argument.
It is not necessary to add $(call ...) to invoke them.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Helge Deller <deller@gmx.de> [parisc]
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index a311db829e9b..7b3487a67476 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -524,7 +524,7 @@ more details, with real examples. | |||
524 | Example: | 524 | Example: |
525 | #arch/x86/Makefile | 525 | #arch/x86/Makefile |
526 | cflags-y += $(shell \ | 526 | cflags-y += $(shell \ |
527 | if [ $(call cc-version) -ge 0300 ] ; then \ | 527 | if [ $(cc-version) -ge 0300 ] ; then \ |
528 | echo "-mregparm=3"; fi ;) | 528 | echo "-mregparm=3"; fi ;) |
529 | 529 | ||
530 | In the above example, -mregparm=3 is only used for gcc version greater | 530 | In the above example, -mregparm=3 is only used for gcc version greater |
@@ -552,7 +552,7 @@ more details, with real examples. | |||
552 | 552 | ||
553 | Example: | 553 | Example: |
554 | #arch/powerpc/Makefile | 554 | #arch/powerpc/Makefile |
555 | $(Q)if test "$(call cc-fullversion)" = "040200" ; then \ | 555 | $(Q)if test "$(cc-fullversion)" = "040200" ; then \ |
556 | echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \ | 556 | echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \ |
557 | false ; \ | 557 | false ; \ |
558 | fi | 558 | fi |