Skip to contentSkip to conversation

bootconfig: Updates for v7.3

GIT PULL Merged Masami Hiramatsu (Google) 2 participants 2 messages Aug 25

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Sorry for sending this pull request last minutes. This branch missed the last merge window and had been sitting in the for-next branch; I nearly forgot about it.

Bootconfig updates for v7.3:

- bootconfig: Support build-time command line rendering for embedded bootconfig . bootconfig: render descendant keys when xbc_snprint_cmdline() root has a value. Fix xbc_snprint_cmdline() to render descendant keys when the root has both a value and subkeys, and treats empty subtrees correctly. . bootconfig: render embedded bootconfig as a kernel cmdline at build time. Add build-time pipeline using tools/bootconfig -C to render the embedded bootconfig "kernel" subtree into .init.rodata as a cmdline string. . bootconfig: clean build-time tools/bootconfig from make clean. . bootconfig: add xbc_prepend_embedded_cmdline() helper.
Add helper to prepend embedded bootconfig cmdline into boot_command_line early before parse_early_param().
. x86/setup: prepend embedded bootconfig cmdline before parse_early_param.
Wire early prepend helper in x86 setup_arch() so early_param handlers see values from the embedded bootconfig. (So this feature is currently x86 only)
. bootconfig: skip runtime kernel.* render once prepended early.
Avoid duplicating "kernel" keys in setup_boot_config().
. init/main.c: use bootconfig_cmdline_requested() for the runtime opt-in.
Refactor setup_boot_config() to share bootconfig_cmdline_requested().
. Documentation: bootconfig: document build-time cmdline rendering.
Document CONFIG_CMDLINE_FROM_BOOTCONFIG usage, requirements, and precedence.

Please pull the latest bootconfig-v7.3 tree, which can be found at:

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
bootconfig-v7.3

Tag SHA1: b0039fb68cbb6070f5f017a166426f100d42c63a Head SHA1: 85595d3f964825c833fd2597521fcef67c3071de

Breno Leitao (8):
bootconfig: render descendant keys when xbc_snprint_cmdline() root has a value
bootconfig: render embedded bootconfig as a kernel cmdline at build time
bootconfig: clean build-time tools/bootconfig from make clean
bootconfig: add xbc_prepend_embedded_cmdline() helper
Documentation: bootconfig: document build-time cmdline rendering x86/setup: prepend embedded bootconfig cmdline before parse_early_param
bootconfig: skip runtime kernel.* render once prepended early init/main.c: use bootconfig_cmdline_requested() for the runtime opt-in

----

 Documentation/admin-guide/bootconfig.rst |  81 ++++++++++++++++++
 MAINTAINERS                              |   1 +
 Makefile                                 |  27 +++++-
 arch/x86/Kconfig                         |   1 +
 arch/x86/kernel/setup.c                  |  14 +++-
 include/linux/bootconfig.h               |  14 ++++
 init/Kconfig                             |  36 ++++++++
 init/main.c                              |  52 ++++++------
 lib/Makefile                             |  16 ++++
 lib/bootconfig.c                         | 139 ++++++++++++++++++++++++++++++-
 lib/embedded-cmdline.S                   |  16 ++++
 tools/bootconfig/Makefile                |   4 +-
 12 files changed, 372 insertions(+), 29 deletions(-)
 create mode 100644 lib/embedded-cmdline.S
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 25 Aug 2026 16:30:00 +0900:

The pull request you sent on Tue, 25 Aug 2026 16:30:00 +0900:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git bootconfig-v7.3

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/5f5ef9c407cfdc524a1aaeb4196d933f61ecf21a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html