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)
5 Enable gdb for the target
7 source "config/debug/gdb.in.cross"
8 source "config/debug/gdb.in.native"
9 source "config/debug/gdb.in.gdbserver"
14 depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
15 # Don't remove next line
16 # CT_INSERT_VERSION_BELOW
20 prompt "7.1 (EXPERIMENTAL)"
21 depends on EXPERIMENTAL
22 select GDB_7_0_or_later
26 prompt "7.0.1 (EXPERIMENTAL)"
27 depends on EXPERIMENTAL
28 select GDB_7_0_or_later
32 prompt "7.0 (EXPERIMENTAL)"
33 depends on EXPERIMENTAL
34 select GDB_7_0_or_later
42 config GDB_7_0_or_later
47 # Don't remove next line
48 # CT_INSERT_VERSION_STRING_BELOW
49 default "7.1" if GDB_V_7_1
50 default "7.0.1" if GDB_V_7_0_1
51 default "7.0" if GDB_V_7_0
52 default "6.8" if GDB_V_6_8