]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - Makefile
kbuild: re-order the code to not parse unnecessary variables
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Oct 2017 03:56:06 +0000 (12:56 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 10 Oct 2017 01:01:29 +0000 (10:01 +0900)
commit2c1f4f125159f10521944cea23e33a00fcf85ede
tree7c44205044aadfadfce3150feac9b048e8a45703
parentba634eceb535d95e87ef09caae7814b3687c6036
kbuild: re-order the code to not parse unnecessary variables

The top Makefile is divided into some sections such as mixed targets,
config targets, build targets, etc.

When we build mixed targets, Kbuild just invokes submake to process
them one by one.  In this case, compiler-related variables like CC,
KBUILD_CFLAGS, etc. are unneeded.

Check what kind of targets we are building first, and parse variables
for building only when necessary.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile