Skip to content

Commit

Permalink
RISC-V: Cosmetic menuconfig changes
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Nick Kossifidis authored and Palmer Dabbelt committed Oct 23, 2018
1 parent ee59288 commit aef53f9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 36 deletions.
40 changes: 39 additions & 1 deletion arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,50 @@ endmenu

endmenu

menu "Kernel type"
menu "Kernel features"

source "kernel/Kconfig.hz"

endmenu

menu "Boot options"

config CMDLINE_BOOL
bool "Built-in kernel command line"
help
For most platforms, it is firmware or second stage bootloader
that by default specifies the kernel command line options.
However, it might be necessary or advantageous to either override
the default kernel command line or add a few extra options to it.
For such cases, this option allows hardcoding command line options
directly into the kernel.

For that, choose 'Y' here and fill in the extra boot parameters
in CONFIG_CMDLINE.

The built-in options will be concatenated to the default command
line if CMDLINE_FORCE is set to 'N'. Otherwise, the default
command line will be ignored and replaced by the built-in string.

config CMDLINE
string "Built-in kernel command string"
depends on CMDLINE_BOOL
default ""
help
Supply command-line options at build time by entering them here.

config CMDLINE_FORCE
bool "Built-in command line overrides bootloader arguments"
depends on CMDLINE_BOOL
help
Set this option to 'Y' to have the kernel ignore the bootloader
or firmware command line. Instead, the built-in command line
will be used exclusively.

If you don't know what to do here, say N.

endmenu

menu "Bus support"

config PCI
Expand Down
35 changes: 0 additions & 35 deletions arch/riscv/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -1,37 +1,2 @@

config CMDLINE_BOOL
bool "Built-in kernel command line"
help
For most platforms, it is firmware or second stage bootloader
that by default specifies the kernel command line options.
However, it might be necessary or advantageous to either override
the default kernel command line or add a few extra options to it.
For such cases, this option allows hardcoding command line options
directly into the kernel.

For that, choose 'Y' here and fill in the extra boot parameters
in CONFIG_CMDLINE.

The built-in options will be concatenated to the default command
line if CMDLINE_FORCE is set to 'N'. Otherwise, the default
command line will be ignored and replaced by the built-in string.

config CMDLINE
string "Built-in kernel command string"
depends on CMDLINE_BOOL
default ""
help
Supply command-line options at build time by entering them here.

config CMDLINE_FORCE
bool "Built-in command line overrides bootloader arguments"
depends on CMDLINE_BOOL
help
Set this option to 'Y' to have the kernel ignore the bootloader
or firmware command line. Instead, the built-in command line
will be used exclusively.

If you don't know what to do here, say N.

config EARLY_PRINTK
def_bool y

0 comments on commit aef53f9

Please sign in to comment.