From: Masahiro Yamada <masahiroy@kernel.org>
To: linux-kbuild@vger.kernel.org
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>,
Sam Ravnborg <sam@ravnborg.org>, Jessica Yu <jeyu@kernel.org>,
Masahiro Yamada <masahiroy@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Michal Marek <michal.lkml@markovi.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] kbuild: generate modules.builtin without Makefile.modbuiltin or tristate.conf
Date: Thu, 19 Dec 2019 17:33:26 +0900 [thread overview]
Message-ID: <20191219083329.5926-1-masahiroy@kernel.org> (raw)
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
--
2.17.1
next reply other threads:[~2019-12-19 8:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 8:33 Masahiro Yamada [this message]
2019-12-19 8:33 ` [PATCH 1/3] kbuild: add stringify helper to quote a string passed to C files Masahiro Yamada
2019-12-19 8:33 ` [PATCH 2/3] kbuild: pass KBUILD_MODFILE when compiling builtin objects Masahiro Yamada
2019-12-19 8:33 ` [PATCH 3/3] kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191219083329.5926-1-masahiroy@kernel.org \
--to=masahiroy@kernel.org \
--cc=corbet@lwn.net \
--cc=jeyu@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.de.marchi@gmail.com \
--cc=michal.lkml@markovi.net \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.