kbuild: generate modules.builtin without Makefile.modbuiltin or tristate.conf
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | kbuild: add stringify helper to quote a string passed to C filesscripts/ scripts/ | +5 | 0 replies | |
| 2/3 | kbuild: pass KBUILD_MODFILE when compiling builtin objectsscripts/ | +9 | 0 replies | |
| 3/3 | kbuild: create modules.builtin without Makefile.modbuiltin or tristate.confDocumentation/ Makefile include/ +4 more | +22 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] kbuild: generate modules.builtin without Makefile.modbuiltin or tristate.conf
This series re-implements the way of generating modules.builtin
Current approach:
Collect all CONFIG options with 'tristate' type into tristate.conf, and parse Makefiles to get the list of builtin modules.
New approach:
Use MODULE_LICENSE() tags that compiled into vmlinux. This information appears in modules.builtin.info, but trimmed from vmlinux itself. So the image size does not change.
This slightly speeds up builds because Kbuild no longer needs to traverse the source tree twice.
Also, the code diff is appealing:
8 files changed, 35 insertions(+), 135 deletions(-)
I think this is OK, but I hope module people can check it.
Masahiro Yamada (3):
kbuild: add stringify helper to quote a string passed to C files
kbuild: pass KBUILD_MODFILE when compiling builtin objects
kbuild: create modules.builtin without Makefile.modbuiltin or
tristate.conf
Documentation/kbuild/kconfig.rst | 5 --- Makefile | 21 +++--------- include/linux/module.h | 12 ++++++- scripts/Kbuild.include | 10 +++--- scripts/Makefile.lib | 17 ++++++---- scripts/Makefile.modbuiltin | 57 -------------------------------- scripts/kconfig/confdata.c | 45 ++----------------------- scripts/link-vmlinux.sh | 4 +++ 8 files changed, 36 insertions(+), 135 deletions(-) delete mode 100644 scripts/Makefile.modbuiltin
Signature · 1 line
2.17.1