diff mbox series

[v2,2/6] arch/config: Make RISC-V MMU optional

Message ID 20200908113324.1022230-3-damien.lemoal@wdc.com
State Changes Requested
Headers show
Series Add support for Kendryte K210 RISC-V boards | expand

Commit Message

Damien Le Moal Sept. 8, 2020, 11:33 a.m. UTC
Linux supports No-MMU RISC-V since kernel version 5.8. Make MMU optional
to enable building for RISC-V boards that do not have one.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
 arch/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alistair Francis Sept. 9, 2020, 5:44 p.m. UTC | #1
On Tue, Sep 8, 2020 at 4:33 AM Damien Le Moal <damien.lemoal@wdc.com> wrote:
>
> Linux supports No-MMU RISC-V since kernel version 5.8. Make MMU optional
> to enable building for RISC-V boards that do not have one.
>
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  arch/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/Config.in b/arch/Config.in
> index 0707c076e2..4a2787c350 100644
> --- a/arch/Config.in
> +++ b/arch/Config.in
> @@ -210,7 +210,7 @@ config BR2_powerpc64le
>
>  config BR2_riscv
>         bool "RISCV"
> -       select BR2_ARCH_HAS_MMU_MANDATORY
> +       select BR2_ARCH_HAS_MMU_OPTIONAL
>         select BR2_ARCH_NEEDS_GCC_AT_LEAST_7
>         help
>           RISC-V is an open, free Instruction Set Architecture created
> --
> 2.26.2
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni Oct. 6, 2020, 9:46 p.m. UTC | #2
On Tue,  8 Sep 2020 20:33:20 +0900
Damien Le Moal <damien.lemoal@wdc.com> wrote:

> Linux supports No-MMU RISC-V since kernel version 5.8. Make MMU optional
> to enable building for RISC-V boards that do not have one.
> 
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>

I think this should come after PATCH 3 and PATCH 4, otherwise the build
of the toolchain probably fails if you disable MMU support on RISC-V,
doesn't it ?

Thomas
Damien Le Moal Oct. 6, 2020, 10:58 p.m. UTC | #3
On 2020/10/07 6:47, Thomas Petazzoni wrote:
> On Tue,  8 Sep 2020 20:33:20 +0900
> Damien Le Moal <damien.lemoal@wdc.com> wrote:
> 
>> Linux supports No-MMU RISC-V since kernel version 5.8. Make MMU optional
>> to enable building for RISC-V boards that do not have one.
>>
>> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
> 
> I think this should come after PATCH 3 and PATCH 4, otherwise the build
> of the toolchain probably fails if you disable MMU support on RISC-V,
> doesn't it ?

Ah. Yes. It is probably better to move it after patch 4. I have not tested the
patches individually... Should have done that.

> 
> Thomas
>
diff mbox series

Patch

diff --git a/arch/Config.in b/arch/Config.in
index 0707c076e2..4a2787c350 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -210,7 +210,7 @@  config BR2_powerpc64le
 
 config BR2_riscv
 	bool "RISCV"
-	select BR2_ARCH_HAS_MMU_MANDATORY
+	select BR2_ARCH_HAS_MMU_OPTIONAL
 	select BR2_ARCH_NEEDS_GCC_AT_LEAST_7
 	help
 	  RISC-V is an open, free Instruction Set Architecture created