Skip to content

Commit aef53f9

Browse files
mickflemmpalmer-dabbelt
authored andcommitted
RISC-V: Cosmetic menuconfig changes
* Move the built-in cmdline configuration on a new menu entry "Boot options", it doesn't make much sense to be part of the debuging menu. * Rename "Kernel Type" menu to "Kernel features" to be more consistent with what other architectures are using, plus "type" is a bit misleading here. Signed-off-by: Nick Kossifidis <mick@ics.forth.gr> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent ee59288 commit aef53f9

File tree

2 files changed

+39
-36
lines changed

2 files changed

+39
-36
lines changed

arch/riscv/Kconfig

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,50 @@ endmenu
212212

213213
endmenu
214214

215-
menu "Kernel type"
215+
menu "Kernel features"
216216

217217
source "kernel/Kconfig.hz"
218218

219219
endmenu
220220

221+
menu "Boot options"
222+
223+
config CMDLINE_BOOL
224+
bool "Built-in kernel command line"
225+
help
226+
For most platforms, it is firmware or second stage bootloader
227+
that by default specifies the kernel command line options.
228+
However, it might be necessary or advantageous to either override
229+
the default kernel command line or add a few extra options to it.
230+
For such cases, this option allows hardcoding command line options
231+
directly into the kernel.
232+
233+
For that, choose 'Y' here and fill in the extra boot parameters
234+
in CONFIG_CMDLINE.
235+
236+
The built-in options will be concatenated to the default command
237+
line if CMDLINE_FORCE is set to 'N'. Otherwise, the default
238+
command line will be ignored and replaced by the built-in string.
239+
240+
config CMDLINE
241+
string "Built-in kernel command string"
242+
depends on CMDLINE_BOOL
243+
default ""
244+
help
245+
Supply command-line options at build time by entering them here.
246+
247+
config CMDLINE_FORCE
248+
bool "Built-in command line overrides bootloader arguments"
249+
depends on CMDLINE_BOOL
250+
help
251+
Set this option to 'Y' to have the kernel ignore the bootloader
252+
or firmware command line. Instead, the built-in command line
253+
will be used exclusively.
254+
255+
If you don't know what to do here, say N.
256+
257+
endmenu
258+
221259
menu "Bus support"
222260

223261
config PCI

arch/riscv/Kconfig.debug

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,2 @@
1-
2-
config CMDLINE_BOOL
3-
bool "Built-in kernel command line"
4-
help
5-
For most platforms, it is firmware or second stage bootloader
6-
that by default specifies the kernel command line options.
7-
However, it might be necessary or advantageous to either override
8-
the default kernel command line or add a few extra options to it.
9-
For such cases, this option allows hardcoding command line options
10-
directly into the kernel.
11-
12-
For that, choose 'Y' here and fill in the extra boot parameters
13-
in CONFIG_CMDLINE.
14-
15-
The built-in options will be concatenated to the default command
16-
line if CMDLINE_FORCE is set to 'N'. Otherwise, the default
17-
command line will be ignored and replaced by the built-in string.
18-
19-
config CMDLINE
20-
string "Built-in kernel command string"
21-
depends on CMDLINE_BOOL
22-
default ""
23-
help
24-
Supply command-line options at build time by entering them here.
25-
26-
config CMDLINE_FORCE
27-
bool "Built-in command line overrides bootloader arguments"
28-
depends on CMDLINE_BOOL
29-
help
30-
Set this option to 'Y' to have the kernel ignore the bootloader
31-
or firmware command line. Instead, the built-in command line
32-
will be used exclusively.
33-
34-
If you don't know what to do here, say N.
35-
361
config EARLY_PRINTK
372
def_bool y

0 commit comments

Comments
 (0)