There was an error fetching the commit references. Please try again later.
kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf
Commit bc081dd6 ("kbuild: generate modules.builtin") added infrastructure to generate modules.builtin, the list of all builtin modules. Basically, it works like this: - Kconfig generates include/config/tristate.conf, the list of tristate CONFIG options with a value in a capital letter. - scripts/Makefile.modbuiltin makes Kbuild descend into directories to collect the information of builtin modules. I am not a big fan of it because Kbuild ends up with traversing the source tree twice. I am not sure how perfectly it should work, but this approach cannot avoid false positives; even if the relevant CONFIG option is tristate, some Makefiles forces obj-m to obj-y. Some examples are: arch/powerpc/platforms/powermac/Makefile: obj-$(CONFIG_NVRAM:m=y) += nvram.o net/ipv6/Makefile: obj-$(subst m,y,$(CONFIG_IPV6)) += inet6_hashtables.o net/netlabel/Makefile: obj-$(subst m,y,$(CONFIG_IPV6)) +=...
Showing
- Documentation/kbuild/kconfig.rst 0 additions, 5 deletionsDocumentation/kbuild/kconfig.rst
- Makefile 5 additions, 16 deletionsMakefile
- include/linux/module.h 11 additions, 1 deletioninclude/linux/module.h
- scripts/Kbuild.include 0 additions, 6 deletionsscripts/Kbuild.include
- scripts/Makefile.modbuiltin 0 additions, 57 deletionsscripts/Makefile.modbuiltin
- scripts/kconfig/confdata.c 2 additions, 43 deletionsscripts/kconfig/confdata.c
- scripts/link-vmlinux.sh 4 additions, 0 deletionsscripts/link-vmlinux.sh
Please register or sign in to comment