2009-05-13 18:10:47 +00:00
|
|
|
#!@@CT_bash@@
|
|
|
|
|
|
|
|
# What we need:
|
|
|
|
# - the .config file
|
|
|
|
|
|
|
|
# Parse the tools' paths configuration
|
2012-01-16 22:36:42 +00:00
|
|
|
. "${CT_LIB_DIR}/paths.sh"
|
2009-05-13 18:10:47 +00:00
|
|
|
|
|
|
|
# We'll need the stdout later, save it
|
2013-01-06 11:08:33 +00:00
|
|
|
exec 9>&1
|
2009-05-13 18:10:47 +00:00
|
|
|
|
|
|
|
# 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
|
2011-05-19 20:29:49 +00:00
|
|
|
. .config.2
|
2009-05-13 18:10:47 +00:00
|
|
|
|
|
|
|
# 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...
|
2013-01-06 11:08:33 +00:00
|
|
|
echo "${CT_TARGET}" >&9
|