[Buildroot] [PATCH 3/5] arch/Config.in.arm: re-organize MMU selection

Romain Naour romain.naour at gmail.com
Wed May 18 20:24:28 UTC 2022


Hello Thomas,

Le 19/04/2022 à 23:34, Thomas Petazzoni via buildroot a écrit :
> So far, all ARM cores were selecting BR2_ARCH_HAS_MMU_OPTIONAL, except
> no-MMU cores which were selecting nothing.
> 
> In practice, MMU-capable ARM cores are always used with their MMU
> enabled, so it doesn't make sense to support the use case of not using
> the MMU on such cores.

So, it means that we can remove qemu_arm_versatile_nommu_defconfig since
BR2_arm926t -> BR2_ARM_CPU_ARMV5 -> BR2_ARCH_HAS_MMU_MANDATORY

Best regards,
Romain


> 
> Consequently, to simplify things, we group the MMU handling in the
> BR2_ARM_CPU_ARM* options: BR2_ARM_CPU_ARMV4, BR2_ARM_CPU_ARMV5,
> BR2_ARM_CPU_ARMV6, BR2_ARM_CPU_ARMV7A, BR2_ARM_CPU_ARMV8A all select
> BR2_ARCH_HAS_MMU_MANDATORY, while BR2_ARM_CPU_ARMV7M continues to
> select nothing, indicating that there is no MMU available at all.
> 
> Fixes:
> 
>  http://autobuild.buildroot.net/results/33277d4687ca9a04dbfb02c50e5755ff9e55b0b4/ (FLAT
>  selected on AArch64)
> 
>  http://autobuild.buildroot.net/results/5e34d11393e14fc36fd6e72b69679bc4fd1e3798/ (FLAT
>  selected on AArch64 big-endian)
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
>  arch/Config.in.arm | 59 ++++------------------------------------------
>  1 file changed, 5 insertions(+), 54 deletions(-)
> 
> diff --git a/arch/Config.in.arm b/arch/Config.in.arm
> index 85040ac89f..fa2e882550 100644
> --- a/arch/Config.in.arm
> +++ b/arch/Config.in.arm
> @@ -73,21 +73,26 @@ config BR2_ARM_CPU_HAS_THUMB2
>  
>  config BR2_ARM_CPU_ARMV4
>  	bool
> +	select BR2_ARCH_HAS_MMU_MANDATORY
>  
>  config BR2_ARM_CPU_ARMV5
>  	bool
> +	select BR2_ARCH_HAS_MMU_MANDATORY
>  



More information about the buildroot mailing list