]> www.infradead.org Git - users/willy/linux.git/commit
add generic builtin command line
authorDaniel Walker <danielwa@cisco.com>
Sat, 29 Sep 2018 17:38:52 +0000 (10:38 -0700)
committerDaniel Walker <danielwa@cisco.com>
Fri, 16 Nov 2018 15:32:25 +0000 (07:32 -0800)
commit0d485f9a3a59fb72d329cb90cfc3b629ed7c2e6f
treef8e46aec155c9e99a7c240044e81763e3024d8fc
parentccda4af0f4b92f7b4c308d3acc262f4a7e3affad
add generic builtin command line

This code allows architectures to use a generic builtin command line.
The state of the builtin command line options across architecture is
diverse. On x86 and mips they have pretty much the same code and the
code prepends the builtin command line onto the boot loader provided
one. On powerpc there is only a builtin override and nothing else.

The code in this commit unifies the mips and x86 code into a generic
header file under the CONFIG_GENERIC_CMDLINE option. When this
option is enabled the architecture can call the cmdline_add_builtin()
to add the builtin command line.

[maksym.kokhan@globallogic.com: fix cmdline_add_builtin() macro]
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Daniel Walker <danielwa@cisco.com>
Cc: xe-linux-external@cisco.com
Signed-off-by: Daniel Walker <danielwa@cisco.com>
Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
include/linux/cmdline.h [new file with mode: 0644]
init/Kconfig