Add ARM11 MPCore CPU target support
authorSergi Granell <sergi_g_12@hotmail.com>
Sat, 28 Nov 2015 14:55:21 +0000 (15:55 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 3 Jan 2016 21:35:22 +0000 (22:35 +0100)
gcc differentiates the mpcore-with-vfp from the mcpore-without-vfp
CPUs. The former is named just 'mpcore', while the latter is named
'mpcorenovfp'.

We only add one entry, 'mpcore' and let the user select whether or
not to use the VFP. We then name the CPU according to the user's
selection.

Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.arm

index ea8414757725253d55e0c80a3fbd04e9c38e8151..60cd3a7f874d883b66277e49c9b604e246234f54 100644 (file)
@@ -104,6 +104,13 @@ config BR2_arm1176jzf_s
        select BR2_ARM_CPU_HAS_THUMB
        select BR2_ARM_CPU_ARMV6
        select BR2_ARCH_HAS_MMU_OPTIONAL
+config BR2_arm11mpcore
+       bool "mpcore"
+       select BR2_ARM_CPU_HAS_ARM
+       select BR2_ARM_CPU_MAYBE_HAS_VFPV2
+       select BR2_ARM_CPU_HAS_THUMB
+       select BR2_ARM_CPU_ARMV6
+       select BR2_ARCH_HAS_MMU_OPTIONAL
 config BR2_cortex_a5
        bool "cortex-A5"
        select BR2_ARM_CPU_HAS_ARM
@@ -430,6 +437,8 @@ config BR2_GCC_TARGET_CPU
        default "arm1136jf-s"   if BR2_arm1136jf_s
        default "arm1176jz-s"   if BR2_arm1176jz_s
        default "arm1176jzf-s"  if BR2_arm1176jzf_s
+       default "mpcore"        if BR2_arm11mpcore && BR2_ARM_CPU_HAS_VFPV2
+       default "mpcorenovfp"   if BR2_arm11mpcore
        default "cortex-a5"     if BR2_cortex_a5
        default "cortex-a7"     if BR2_cortex_a7
        default "cortex-a8"     if BR2_cortex_a8