Thread (13 messages) 13 messages, 2 authors, 11d ago

Re: [PATCH v7 0/9] bootconfig: embed kernel.* cmdline at build time

From: Breno Leitao <leitao@debian.org>
Date: 2026-06-26 14:54:11
Also in: bpf, linux-doc, linux-kbuild, lkml, llvm

On Fri, Jun 26, 2026 at 11:33:27PM +0900, Masami Hiramatsu wrote:
quoted
The userspace pieces (xbc_snprint_cmdline() in lib/, tools/bootconfig -C)
already landed; this series wires the rendered cmdline into the kernel.

Motivation: today the embedded bootconfig is parsed at runtime, after
parse_early_param() has already run, so early_param() handlers can't
see embedded values. Folding the kernel.* subtree into the cmdline at
build time gives a CONFIG_CMDLINE-equivalent for embedded-bootconfig
users without forcing them to maintain two cmdline sources.

Behaviorally, the "kernel" subtree is rendered to a flat string at
build time and stashed in .init.rodata. setup_arch() prepends it to
boot_command_line before parse_early_param() runs. Overflow is a soft
error: the helper logs and leaves boot_command_line untouched rather
than panicking, so an oversized embedded bconf cannot brick a boot.
Thanks for update!! This looks good to me.
Let me pick it and test it.
This is great. Thanks for it and for the support so far.
--breno
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help