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.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -39,7 +39,8 @@ cat > "$output_file" << EOT · 38 unmodified lines | |||
| 39 | 39 | ||
| 40 | EOT | 40 | EOT |
| 41 | 41 | ||
| 42 | sed 's/ko$/mod/' modules.order | | 42 | [ -f modules.order ] && modlist=modules.order || modlist=/dev/null |
| 43 | sed 's/ko$/mod/' $modlist | | ||
| 43 | xargs -n1 sed -n -e '2{s/ /\n/g;/^$/!p;}' -- | | 44 | xargs -n1 sed -n -e '2{s/ /\n/g;/^$/!p;}' -- | |
| 44 | cat - "$ksym_wl" | | 45 | cat - "$ksym_wl" | |
| 45 | sort -u | | 46 | sort -u | |