Commit 13c239a2 authored by Ivan Davydov's avatar Ivan Davydov Committed by Masahiro Yamada

kbuild: doc: gcc to CC change

In this part of the documentation, $(CC) is meant, but gcc is written.
Signed-off-by: default avatarIvan Davydov <davydoff33@yandex.ru>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 1a7c8d24
...@@ -578,7 +578,7 @@ cc-option ...@@ -578,7 +578,7 @@ cc-option
Note: cc-option uses KBUILD_CFLAGS for $(CC) options Note: cc-option uses KBUILD_CFLAGS for $(CC) options
cc-option-yn cc-option-yn
cc-option-yn is used to check if gcc supports a given option cc-option-yn is used to check if $(CC) supports a given option
and return "y" if supported, otherwise "n". and return "y" if supported, otherwise "n".
Example:: Example::
...@@ -596,7 +596,7 @@ cc-option-yn ...@@ -596,7 +596,7 @@ cc-option-yn
Note: cc-option-yn uses KBUILD_CFLAGS for $(CC) options Note: cc-option-yn uses KBUILD_CFLAGS for $(CC) options
cc-disable-warning cc-disable-warning
cc-disable-warning checks if gcc supports a given warning and returns cc-disable-warning checks if $(CC) supports a given warning and returns
the commandline switch to disable it. This special function is needed, the commandline switch to disable it. This special function is needed,
because gcc 4.4 and later accept any unknown -Wno-* option and only because gcc 4.4 and later accept any unknown -Wno-* option and only
warn about it if there is another warning in the source file. warn about it if there is another warning in the source file.
...@@ -606,7 +606,7 @@ cc-disable-warning ...@@ -606,7 +606,7 @@ cc-disable-warning
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
In the above example, -Wno-unused-but-set-variable will be added to In the above example, -Wno-unused-but-set-variable will be added to
KBUILD_CFLAGS only if gcc really accepts it. KBUILD_CFLAGS only if $(CC) really accepts it.
gcc-min-version gcc-min-version
gcc-min-version tests if the value of $(CONFIG_GCC_VERSION) is greater than gcc-min-version tests if the value of $(CONFIG_GCC_VERSION) is greater than
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment