]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: split cc-option and friends to scripts/Makefile.compiler
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 28 Feb 2021 06:10:27 +0000 (15:10 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Apr 2021 20:09:32 +0000 (05:09 +0900)
commit482d37d63a13c0baa1fe2c5f912919748a956cf6
treeec64861aab0f628df236c229e54a23251880475a
parent5db712b472529156433aa0107a15fccde9936006
kbuild: split cc-option and friends to scripts/Makefile.compiler

scripts/Kbuild.include is included everywhere, but macros such as
cc-option are needed by build targets only.

For example, when 'make clean' traverses the tree, it does not need
to evaluate $(call cc-option,).

Split cc-option, ld-option, etc. to scripts/Makefile.compiler, which
is only included from the top Makefile and scripts/Makefile.build.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
scripts/Kbuild.include
scripts/Makefile.build
scripts/Makefile.compiler [new file with mode: 0644]