config/binutils.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sun May 11 13:38:12 2014 +0200 (2014-05-11)
changeset 3313 ad14212ebf54
parent 3120 f32c0f8ffaa3
permissions -rw-r--r--
config: switch cc with libc in the config order

Some of the compiler options depend on the C library choice, (e.g.
whether core passes are needed).

Since the compiler menu comes before the C library menu, those options
may or may not be visible until the C library is chosen, leading to
either options being visible by the user (thus be puzzling as they would
not apply to his case), or invisible to him (yet again puzzling him).

Invert the order of the compiler and the C library in the menuconfig. It
anyway looks more rational, in the end.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     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