03 Mar, 2020
2 commits
-
When doing a cold build, autoksyms.h starts empty, and is updated late
in the build process to have visibility over the symbols used by in-tree
drivers. But since the symbol whitelist is known upfront, it can be used
to pre-populate autoksyms.h and maximize the amount of code that can be
compiled to its final state in a single pass, hence reducing build time.Do this by using gen_autoksyms.sh to initialize autoksyms.h instead of
creating an empty file.Acked-by: Nicolas Pitre
Tested-by: Matthias Maennich
Reviewed-by: Matthias Maennich
Signed-off-by: Quentin Perret
Signed-off-by: Masahiro Yamada -
In order to prepare the ground for a build-time optimization, split
adjust_autoksyms.sh into two scripts: one that generates autoksyms.h
based on all currently available information (whitelist, and .mod
files), and the other to inspect the diff between two versions of
autoksyms.h and trigger appropriate rebuilds.Acked-by: Nicolas Pitre
Tested-by: Matthias Maennich
Reviewed-by: Matthias Maennich
Signed-off-by: Quentin Perret
Signed-off-by: Masahiro Yamada