mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-24 15:06:42 +00:00
188d166ce3
Since we've had the debug shell feature, fd #7 is now used to redirect stderr, while it was previously unused. Use fd #9 to redirect stdout. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
31 lines
656 B
Bash
31 lines
656 B
Bash
#!@@CT_bash@@
|
|
|
|
# What we need:
|
|
# - the .config file
|
|
|
|
# Parse the tools' paths configuration
|
|
. "${CT_LIB_DIR}/paths.sh"
|
|
|
|
# We'll need the stdout later, save it
|
|
exec 9>&1
|
|
|
|
# Parse the common functions
|
|
. "${CT_LIB_DIR}/scripts/functions"
|
|
|
|
# Don't care about any log file
|
|
exec >/dev/null
|
|
rm -f "${tmp_log_file}"
|
|
|
|
# Parse the configuration file
|
|
. .config.2
|
|
|
|
# Parse architecture and kernel specific functions
|
|
. "${CT_LIB_DIR}/scripts/build/arch/${CT_ARCH}.sh"
|
|
. "${CT_LIB_DIR}/scripts/build/kernel/${CT_KERNEL}.sh"
|
|
|
|
# Build CT_TARGET
|
|
CT_DoBuildTargetTuple
|
|
|
|
# All this for this single echo... :-( Sigh, I'll have to re-arrange things...
|
|
echo "${CT_TARGET}" >&9
|