xref: /linux/lib/embedded-cmdline.S (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Embed the build-time-rendered bootconfig "kernel" subtree as a flat
4 * cmdline string. setup_arch() prepends this to boot_command_line on
5 * architectures that select ARCH_SUPPORTS_CMDLINE_FROM_BOOTCONFIG.
6 *
7 * Copyright (c) 2026 Meta Platforms, Inc. and affiliates
8 * Copyright (c) 2026 Breno Leitao <leitao@debian.org>
9 */
10	.section .init.rodata.embed_cmdline, "a", %progbits
11	.global embedded_kernel_cmdline
12embedded_kernel_cmdline:
13	.incbin "lib/embedded_cmdline.bin"
14	.byte 0
15	.global embedded_kernel_cmdline_end
16embedded_kernel_cmdline_end:
17