diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-02-28 07:10:27 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-04-24 22:09:32 +0200 |
commit | 57fd251c789647552d32d2fc51bedd4f90d70f9f (patch) | |
tree | ec64861aab0f628df236c229e54a23251880475a /Makefile | |
parent | kbuild: prefix $(srctree)/ to some included Makefiles (diff) | |
download | linux-57fd251c789647552d32d2fc51bedd4f90d70f9f.tar.xz linux-57fd251c789647552d32d2fc51bedd4f90d70f9f.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -584,6 +584,10 @@ KBUILD_AFLAGS += $(CLANG_FLAGS) export CLANG_FLAGS endif +# Include this also for config targets because some architectures need +# cc-cross-prefix to determine CROSS_COMPILE. +include $(srctree)/scripts/Makefile.compiler + ifdef config-build # =========================================================================== # *config targets only - make sure prerequisites are updated, and descend |