]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95c079656ec8413ef83aebdd67266654eaa68128
tree7c44205044aadfadfce3150feac9b048e8a45703
parentd2f4739891c5ca047d95b56a672bc0a3451e6a5d
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