mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
kbuild: create/adjust generated/autoksyms.h
Given the list of exported symbols needed by all modules, we can create a header file containing preprocessor defines for each of those symbols. Also, when some symbols are added and/or removed from the list, we can update the time on the corresponding files used as build dependencies for those symbols. And finally, if any symbol did change state, the corresponding source files must be rebuilt. The insertion or removal of an EXPORT_SYMBOL() entry within a module may create or remove the need for another exported symbol. This is why this operation has to be repeated until the list of needed exported symbols becomes stable. Only then the final kernel and modules link take place. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c1a95fda2a
commit
23121ca2b5
2 changed files with 114 additions and 0 deletions
13
Makefile
13
Makefile
101
scripts/adjust_autoksyms.sh
Executable file
101
scripts/adjust_autoksyms.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue