summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-02-10 15:42:25 +0100
committerMartin Roth <martinroth@google.com>2019-07-02 16:16:31 +0000
commit9d0b7b902106e898d44f2bfc9b944a2e0c9a4f27 (patch)
treeabc3a070c19fe7d6e86d38c3484fbb51ae2f05ec /src/arch
parent4d4a13f7970c299bed278f2f098211cefaf17684 (diff)
arch/riscv: Make RISCV specific options depend on ARCH_RISCV
Also don't define the default as this results in spurious lines in the .config. The only difference in the generated config.h is that for most board ARCH_RISCV_M goes from 1 to 0. This should not matter. Change-Id: I3e8c1cc5696d621e243696a3b5e34f62ab69a688 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31311 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv/Kconfig23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/arch/riscv/Kconfig b/src/arch/riscv/Kconfig
index 25a398068a..a4f1788497 100644
--- a/src/arch/riscv/Kconfig
+++ b/src/arch/riscv/Kconfig
@@ -1,6 +1,15 @@
+config ARCH_RISCV_RV64
+ bool
+ select ARCH_RISCV
+
+config ARCH_RISCV_RV32
+ bool
+ select ARCH_RISCV
+
config ARCH_RISCV
bool
- default n
+
+if ARCH_RISCV
config RISCV_ARCH
string
@@ -37,16 +46,6 @@ config ARCH_RISCV_U
bool
default n
-config ARCH_RISCV_RV64
- bool
- default n
- select ARCH_RISCV
-
-config ARCH_RISCV_RV32
- bool
- default n
- select ARCH_RISCV
-
config ARCH_RISCV_PMP
bool
default n
@@ -74,3 +73,5 @@ config RISCV_USE_ARCH_TIMER
config RISCV_WORKING_HARTID
int
+
+endif # if ARCH_RISCV