config/arch/arm.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Oct 26 23:11:10 2009 +0100 (2009-10-26)
changeset 1597 fa8f3ab724f9
parent 1596 ca1bf632da51
child 1716 6bbf206a5b57
permissions -rw-r--r--
arch/arm: add THUMB interworking support

Add config option to build wtarget code with THUMB interworking.
This is used to build the C library as well as all other code
that runs on the target.
     1 # ARM specific configuration file
     2 
     3 config ARCH_arm
     4     select ARCH_SUPPORTS_BOTH_MMU
     5     select ARCH_DEFAULT_HAS_MMU
     6     select ARCH_SUPPORTS_BOTH_ENDIAN
     7     select ARCH_DEFAULT_LE
     8     select ARCH_SUPPORT_ARCH
     9     select ARCH_SUPPORT_CPU
    10     select ARCH_SUPPORT_TUNE
    11     select ARCH_SUPPORT_FPU
    12     help
    13       The ARM architecture, as defined by:
    14         http://www.arm.com/
    15 
    16 config ARCH_ARM_MODE
    17     string
    18     default "arm"   if ARCH_ARM_MODE_ARM
    19     default "thumb" if ARCH_ARM_MODE_THUMB
    20 
    21 choice
    22     bool
    23     prompt "Default instruction set mode"
    24     default ARCH_ARM_MODE_ARM
    25 
    26 config ARCH_ARM_MODE_ARM
    27     bool
    28     prompt "arm"
    29     help
    30       Defaults to emitting instructions in the ARM mode.
    31 
    32 config ARCH_ARM_MODE_THUMB
    33     bool
    34     prompt "thumb (EXPERIMENTAL)"
    35     depends on EXPERIMENTAL
    36     help
    37       Defaults to emitting instructions in the THUMB mode.
    38 
    39 endchoice
    40 
    41 config ARCH_ARM_INTERWORKING
    42     bool
    43     prompt "Use Thumb-interworking (READ HELP)"
    44     default n
    45     depends on EXPERIMENTAL
    46     help
    47       Excerpt from the gcc manual:
    48       
    49       > Generate code which supports calling between the ARM and Thumb
    50       > instruction sets. Without this option the two instruction sets
    51       > cannot be reliably used inside one program. The default is
    52       > [not to use interwork], since slightly larger code is generated
    53       > when [interwork] is specified.
    54 
    55 config ARCH_ARM_EABI
    56     bool
    57     prompt "Use EABI"
    58     default y
    59     help
    60       Set up the toolchain so that it generates EABI-compliant binaries.
    61 
    62 config ARCH_ARM_ABI_OK
    63     bool
    64     default y
    65     depends on ! ARCH_ARM_EABI
    66     select ARCH_SUPPORT_ABI