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>
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)...
15 # Each target OS (aka kernel) that support shared libraries can select
16 # this, so the user can decide whether or not to build a shared library
18 config KERNEL_SUPPORTS_SHARED_LIBS
28 source "config.gen/kernel.in"
30 comment "Common kernel options"
34 prompt "Build shared libraries"
35 depends on KERNEL_SUPPORTS_SHARED_LIBS
38 Say 'y' here, unless you don't want shared libraries.
40 You might not want shared libraries if you're building for a target that
41 don't support it (maybe some nommu targets, for example, or bare metal).
43 source "config.gen/kernel.in.2"