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 <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
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
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