From 343643fdf1c68927439da34992953834e9c05fbe Mon Sep 17 00:00:00 2001 From: Damien Le Moal Date: Tue, 26 Oct 2021 16:17:22 +0900 Subject: [PATCH] arch/config: Make RISC-V 64-bits MMU optional Linux supports No-MMU RISC-V 64-bits since kernel version 5.8. Make MMU optional to enable building for RISC-V 64-bits boards that do not have one. MMU use of RISC-V 32-bits builds remains mandatory for now. Signed-off-by: Damien Le Moal Reviewed-by: Alistair Francis Signed-off-by: Peter Korsgaard --- arch/Config.in | 1 - arch/Config.in.riscv | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/Config.in b/arch/Config.in index d50718e2d4..c99af89efa 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -209,7 +209,6 @@ config BR2_powerpc64le config BR2_riscv bool "RISCV" - select BR2_ARCH_HAS_MMU_MANDATORY select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 help RISC-V is an open, free Instruction Set Architecture created diff --git a/arch/Config.in.riscv b/arch/Config.in.riscv index 1fc20e5de7..e6436d7c39 100644 --- a/arch/Config.in.riscv +++ b/arch/Config.in.riscv @@ -71,10 +71,12 @@ choice config BR2_RISCV_32 bool "32-bit" + select BR2_ARCH_HAS_MMU_MANDATORY config BR2_RISCV_64 bool "64-bit" select BR2_ARCH_IS_64 + select BR2_ARCH_HAS_MMU_OPTIONAL endchoice