Skip to content

Commit

Permalink
MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
Browse files Browse the repository at this point in the history
The MIPS_GENERIC symbol now won't select any other configuration option.
The MIPS_GENERIC_KERNEL will select all the options that the previous
MIPS_GENERIC option did select, and will select MIPS_GENERIC as well.

The whole point of this, is that it now becomes possible to compile a
kernel for a SoC supported by the arch/mips/generic/ code, without
making that kernel generic itself.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
  • Loading branch information
Paul Cercueil authored and Thomas Bogendoerfer committed Sep 18, 2020
1 parent 5f5ed0e commit c434b9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,18 @@ config MIPS
config MIPS_FIXUP_BIGPHYS_ADDR
bool

config MIPS_GENERIC
bool

menu "Machine selection"

choice
prompt "System type"
default MIPS_GENERIC
default MIPS_GENERIC_KERNEL

config MIPS_GENERIC
config MIPS_GENERIC_KERNEL
bool "Generic board-agnostic MIPS kernel"
select MIPS_GENERIC
select BOOT_RAW
select BUILTIN_DTB
select CEVT_R4K
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/generic/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
if MIPS_GENERIC
if MIPS_GENERIC_KERNEL

config LEGACY_BOARDS
bool
Expand Down

0 comments on commit c434b9f

Please sign in to comment.