mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Helge Deller <[email protected]> [parisc] Signed-off-by: Michal Marek <[email protected]>
This commit is contained in:
parent
dd33c03b18
commit
665d92e38f
6 changed files with 10 additions and 13 deletions
|
|
@ -524,7 +524,7 @@ more details, with real examples.
|
|||
Example:
|
||||
#arch/x86/Makefile
|
||||
cflags-y += $(shell \
|
||||
if [ $(call cc-version) -ge 0300 ] ; then \
|
||||
if [ $(cc-version) -ge 0300 ] ; then \
|
||||
echo "-mregparm=3"; fi ;)
|
||||
|
||||
In the above example, -mregparm=3 is only used for gcc version greater
|
||||
|
|
@ -552,7 +552,7 @@ more details, with real examples.
|
|||
|
||||
Example:
|
||||
#arch/powerpc/Makefile
|
||||
$(Q)if test "$(call cc-fullversion)" = "040200" ; then \
|
||||
$(Q)if test "$(cc-fullversion)" = "040200" ; then \
|
||||
echo -n '*** GCC-4.2.0 cannot compile the 64-bit powerpc ' ; \
|
||||
false ; \
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue