]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: split the second line of *.mod into *.usyms
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 6 Apr 2022 15:30:20 +0000 (00:30 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:16:59 +0000 (03:16 +0900)
commit8ce240a462b3d5c66a9fcc89b230d5963dc47ac9
treeefb106529373b6c24577df146c8e3afc90fe0e8e
parentf3016c6419628024ca882ec3625e820fd6c3b133
kbuild: split the second line of *.mod into *.usyms

The *.mod files have two lines; the first line lists the member objects
of the module, and the second line, if CONFIG_TRIM_UNUSED_KSYMS=y, lists
the undefined symbols.

Currently, we generate *.mod after constructing composite modules,
otherwise, we cannot compute the second line. No prerequisite is
required to print the first line.

They are orthogonal. Splitting them into separate commands will ease
further cleanups.

This commit splits the list of undefined symbols out to *.usyms files.

Previously, the list of undefined symbols ended up with a very long
line, but now it has one symbol per line.

Use sed like we did before commit 145a73d5e6d9 ("kbuild: avoid split
lines in .mod files").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
.gitignore
Makefile
scripts/Makefile.build
scripts/adjust_autoksyms.sh
scripts/gen_autoksyms.sh
scripts/mod/sumversion.c