MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
authorPaul Cercueil <paul@crapouillou.net>
Sun, 6 Sep 2020 19:29:25 +0000 (21:29 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 18 Sep 2020 14:28:31 +0000 (16:28 +0200)
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>
arch/mips/Kconfig
arch/mips/generic/Kconfig

index 632fe8fe68c4846ca8eccf9aae33fea99cc86cb4..d96618c91103010af617539c178e8ec4f269f3e6 100644 (file)
@@ -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
index fd6019802657a27d07d65a7760fd92e9a0871e03..5216c850b7e2e0e3d2913f2d714ad0ae134cc0a0 100644 (file)
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
-if MIPS_GENERIC
+if MIPS_GENERIC_KERNEL
 
 config LEGACY_BOARDS
        bool