config/binutils.in
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
parent 3120 f32c0f8ffaa3
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
     1 # Binary utilities menu
     2 
     3 menu "Binary utilities"
     4 
     5 choice
     6     bool
     7     prompt "Binary format:"
     8 
     9 config ARCH_BINFMT_ELF
    10     bool
    11     prompt "ELF"
    12     depends on ARCH_USE_MMU || BARE_METAL
    13     help
    14       This will make your system build ELF executables,
    15       suitable for architectures with an MMU.
    16 
    17 config ARCH_BINFMT_FLAT
    18     bool
    19     prompt "Flat"
    20     depends on ! ARCH_USE_MMU
    21     help
    22       This will build flat binaries, suitable for
    23       MMU-less architectures.
    24 
    25 config ARCH_BINFMT_FDPIC
    26     bool
    27     prompt "FD_PIC ELF"
    28     depends on ! ARCH_USE_MMU
    29     help
    30       This will build FD_PIC ELF binaries, suitable for
    31       MMU-less architectures that still require to use
    32       shared libraries (FIXME).
    33 
    34 endchoice
    35 
    36 config BINUTILS
    37     string
    38 
    39 source "config.gen/binutils.in"
    40 source "config.gen/binutils.in.2"
    41 
    42 endmenu