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)
3 menu "Operating System"
5 # Config option used throughout the config and code to determine wether
6 # we have a kernel or not (there might be different bare metal stuff)...
11 # Each target OS (aka kernel) that support shared libraries can select
12 # this, so the user can decide whether or not to build a shared library
14 config KERNEL_SUPPORTS_SHARED_LIBS
24 source "config.gen/kernel.in"
26 comment "Common kernel options"
30 prompt "Build shared libraries"
31 depends on KERNEL_SUPPORTS_SHARED_LIBS
34 Say 'y' here, unless you don't want shared libraries.
36 You might not want shared libraries if you're building for a target that
37 don't support it (maybe some nommu targets, for example, or bare metal).