On Fri, May 29, 2026 at 12:15:19AM +0900, Masami Hiramatsu wrote:
On Wed, 27 May 2026 09:41:33 -0700
Breno Leitao [off-list ref] 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 Breno, yes, that is what I think about.
Let me check it. And could you also check Sashiko's comments?
yes, I've spent some time on them, and it reported some good points, in
fact. I will fix those and resend.
Thanks!
--breno