[Buildroot] [PATCH v2 1/6] arm: update processor types

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon May 18 20:05:12 UTC 2015


Dear Guido Martínez,

On Mon, 18 May 2015 11:24:43 -0300, Guido Martínez wrote:

>  config BR2_USE_MMU
> -	bool "Enable MMU support" if BR2_arm || BR2_armeb || BR2_sh || BR2_xtensa
> -	default y if !BR2_bfin
> +	bool "Enable MMU support"
> +	depends on BR2_arm || BR2_armeb || BR2_sh || BR2_xtensa
> +	depends on !BR2_cortex_m3 && !BR2_bfin

This breaks things, because now BR2_USE_MMU is empty on architectures
others than arm, armeb, sh and xtensa.

What we probably need is something like this:

config BR2_ARCH_MMU_OPTIONAL
	bool

config BR2_ARCH_MMU_MANDATORY
	bool

and have all ARM cores select BR2_ARCH_MMU_OPTIONAL except Cortex M3,
SuperH and Xtensa select BR2_ARCH_MMU_OPTIONAL, all other architectures
except Blackfin selecting BR2_ARCH_MMU_MANDATORY.

And then:

	bool "Enable MMU support" if BR2_ARCH_MMU_OPTIONAL
	default y if BR2_ARCH_MMU_MANDATORY || BR2_ARCH_MMU_OPTIONAL

or something like that.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list