diff options
| author | Nick Kossifidis <mick@ics.forth.gr> | 2018-09-19 18:48:15 -0400 |
|---|---|---|
| committer | Palmer Dabbelt <palmer@sifive.com> | 2018-10-22 20:38:20 -0400 |
| commit | aef53f97b505ff94190ce3a06dcd0ded6cf5c0ca (patch) | |
| tree | 1ea196b9789bb9a92c3b38574fd0f8bf656473b3 | |
| parent | ee5928843a93c7d246bbe17c5eed95918ed0ddb1 (diff) | |
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>
| -rw-r--r-- | arch/riscv/Kconfig | 40 | ||||
| -rw-r--r-- | arch/riscv/Kconfig.debug | 35 |
2 files changed, 39 insertions, 36 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index bb80d3ea82fd..6c8329beb936 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig | |||
| @@ -212,12 +212,50 @@ endmenu | |||
| 212 | 212 | ||
| 213 | endmenu | 213 | endmenu |
| 214 | 214 | ||
| 215 | menu "Kernel type" | 215 | menu "Kernel features" |
| 216 | 216 | ||
| 217 | source "kernel/Kconfig.hz" | 217 | source "kernel/Kconfig.hz" |
| 218 | 218 | ||
| 219 | endmenu | 219 | endmenu |
| 220 | 220 | ||
| 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 | |||
| 221 | menu "Bus support" | 259 | menu "Bus support" |
| 222 | 260 | ||
| 223 | config PCI | 261 | config PCI |
diff --git a/arch/riscv/Kconfig.debug b/arch/riscv/Kconfig.debug index 3224ff6ecf6e..c5a72f17c469 100644 --- a/arch/riscv/Kconfig.debug +++ b/arch/riscv/Kconfig.debug | |||
| @@ -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 | |||
| 36 | config EARLY_PRINTK | 1 | config EARLY_PRINTK |
| 37 | def_bool y | 2 | def_bool y |
