config/global.in
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:30:37 2010 +0200 (2010-07-29)
changeset 2044 20dd8cef1c8a
parent 694 1026e9628e59
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>
yann@1
     1
# Overall toolchain configuration: paths, jobs, etc...
yann@1
     2
yann@2040
     3
# Allow unconditional usage of tristates
yann@2040
     4
config MODULES
yann@2040
     5
    bool
yann@2040
     6
    default y
yann@2040
     7
yann@1
     8
menu "Paths and misc options"
yann@1
     9
yann@446
    10
source "config/global/ct-behave.in"
yann@694
    11
source "config/global/paths.in"
yann@693
    12
source "config/global/download.in"
yann@693
    13
source "config/global/extract.in"
yann@446
    14
source "config/global/build-behave.in"
yann@446
    15
source "config/global/logging.in"
yann@1
    16
yann@1
    17
endmenu