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>
7 prompt "binutils version"
8 # Don't remove next line
9 # CT_INSERT_VERSION_BELOW
11 config BINUTILS_V_2_20_1
15 config BINUTILS_V_2_20
19 config BINUTILS_V_2_19_1
23 config BINUTILS_V_2_19
27 config BINUTILS_V_2_18
31 config BINUTILS_V_2_17
33 prompt "2.17 (OBSOLETE)"
36 config BINUTILS_V_2_16_1
38 prompt "2.16.1 (OBSOLETE)"
43 config BINUTILS_VERSION
45 # Don't remove next line
46 # CT_INSERT_VERSION_STRING_BELOW
47 default "2.20.1" if BINUTILS_V_2_20_1
48 default "2.20" if BINUTILS_V_2_20
49 default "2.19.1" if BINUTILS_V_2_19_1
50 default "2.19" if BINUTILS_V_2_19
51 default "2.18" if BINUTILS_V_2_18
52 default "2.17" if BINUTILS_V_2_17
53 default "2.16.1" if BINUTILS_V_2_16_1
55 config BINUTILS_EXTRA_CONFIG
57 prompt "binutils extra config"
60 Extra flags passed onto ./configure when configuring
62 config BINUTILS_FOR_TARGET
64 prompt "binutils libraries for the target"
65 depends on ! BARE_METAL
69 Some utilities may need binutils libraries to be available on
70 the target, eg. oprofile.
72 if BINUTILS_FOR_TARGET
74 config BINUTILS_FOR_TARGET_IBERTY
79 config BINUTILS_FOR_TARGET_BFD
84 config BINUTILS_TARGET_USE_GMP_MPFR
86 prompt "Use GMP and MPFR"
91 binutils can be configured to use GMP and MPFR.
92 While this is automatically handled for the cross-binutils,
93 You have to explicitly state so for the native libraries that
94 will run on the target.
96 endif # BINUTILS_FOR_TARGET