config/arch/arm.in.2
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Dec 27 12:45:22 2012 +0100 (2012-12-27)
changeset 3152 b286c7993be5
parent 2788 b6faa28e76e0
child 3158 1161ea79915b
permissions -rw-r--r--
scripts/addToolsVersion: properly handle .in vs. .in.2

While most components have their version in the .in file, some
have it in the .in.2 (eg. elf2flt).

Currently, to handle this case, we indiscriminately munge both files,
but this is wrong: in the elf2flt case, if we add a binutils version,
we do not want it to be added to elf2flt, and conversely.

So, for each tool, we need to explicitly know what file to munge.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # ARM specific configuration file
     2 
     3 config ARCH_ARM_MODE
     4     string
     5     default "arm"   if ARCH_ARM_MODE_ARM
     6     default "thumb" if ARCH_ARM_MODE_THUMB
     7 
     8 choice
     9     bool
    10     prompt "Default instruction set mode"
    11     default ARCH_ARM_MODE_ARM
    12 
    13 config ARCH_ARM_MODE_ARM
    14     bool
    15     prompt "arm"
    16     help
    17       Defaults to emitting instructions in the ARM mode.
    18 
    19 config ARCH_ARM_MODE_THUMB
    20     bool
    21     prompt "thumb"
    22     help
    23       Defaults to emitting instructions in the THUMB mode.
    24 
    25 endchoice
    26 
    27 config ARCH_ARM_INTERWORKING
    28     bool
    29     prompt "Use Thumb-interworking (READ HELP)"
    30     help
    31       Excerpt from the gcc manual:
    32       
    33       > Generate code which supports calling between the ARM and Thumb
    34       > instruction sets. Without this option the two instruction sets
    35       > cannot be reliably used inside one program. The default is
    36       > [not to use interwork], since slightly larger code is generated
    37       > when [interwork] is specified.
    38       
    39       NOTE: Interworking in crosstool-NG is not sell-tested. Use at your
    40             own risks, and report success and/or failure.
    41 
    42 config ARCH_ARM_EABI
    43     bool
    44     prompt "Use EABI"
    45     default y
    46     help
    47       Set up the toolchain so that it generates EABI-compliant binaries.
    48 
    49 config ARCH_ARM_ABI_OK
    50     bool
    51     default y
    52     depends on ! ARCH_ARM_EABI
    53     select ARCH_SUPPORTS_WITH_ABI