config/binutils.in
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:30:37 2010 +0200 (2010-07-29)
branch1.7
changeset 2047 ace1d90c9b15
parent 1887 5d872df743fe
child 2564 5d4e91c0343e
permissions -rw-r--r--
scripts: remove . from $PATH

Add CT_SanitizePath function which removes entries referring to ., /tmp
and non-existing directories from $PATH, and call it early in the
build script.

If . is in PATH, gcc-4.4.4 build breaks:

[ALL ] checking what assembler to use...
/tmp/build/targets/arm-unknown-linux-uclibcgnueabi/build/gcc-core-static/arm-unknown-linux-uclibcgnueabi/bin/as
...
[ALL ] config.status: creating as

i.e. "as" is supposed to be the arm-unknown-linux-uclibcgnueabi cross assembler,
but config.status creates a local "as" script which is calling the
host assembler.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[Yann E. MORIN: style fixes + explanations]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 20dd8cef1c8adff0aa3e78ae6d7acfbc45ed5a83)
yann@1345
     1
# Binary utilities menu
yann@1
     2
yann@1345
     3
menu "Binary utilities"
yann@1
     4
yann@1
     5
choice
yann@1
     6
    bool
yann@1345
     7
    prompt "Binary format:"
yann@1
     8
bartvdrmeulen@1897
     9
if ARCH_USE_MMU || BARE_METAL
yann@1345
    10
yann@1345
    11
config ARCH_BINFMT_ELF
yann@1
    12
    bool
yann@1345
    13
    prompt "ELF"
yann@1345
    14
    help
yann@1345
    15
      This will make your system build ELF exectubales,
yann@1345
    16
      suitable for architectures with an MMU.
yann@1
    17
yann@1345
    18
endif # ARCH_USE_MMU
yann@1345
    19
yann@1345
    20
if ! ARCH_USE_MMU
yann@1345
    21
yann@1345
    22
config ARCH_BINFMT_FLAT
yann@1
    23
    bool
yann@1345
    24
    prompt "Flat"
yann@1345
    25
    help
yann@1345
    26
      This will build flat binaries, suitable for
yann@1345
    27
      MMU-less architectures.
yann@1
    28
thomas@1887
    29
config ARCH_BINFMT_FDPIC
thomas@1887
    30
    bool
thomas@1887
    31
    prompt "FD_PIC ELF"
thomas@1887
    32
    help
thomas@1887
    33
      This will build FD_PIC ELF binaries, suitable for
thomas@1887
    34
      MMU-less architectures that still require to use
thomas@1887
    35
      shared libraries (FIXME).
yann@1
    36
yann@1345
    37
endif # ! ARCH_USE_MMU
yann@1
    38
yann@1
    39
endchoice
yann@1
    40
yann@1870
    41
source "config/binutils/binutils.in"
yann@1870
    42
source "config/binutils/elf2flt.in"
yann@1870
    43
source "config/binutils/sstrip.in"
yann@458
    44
yann@1
    45
endmenu