diff options
Diffstat (limited to 'scripts/showTuple.sh.in')
-rw-r--r-- | scripts/showTuple.sh.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/showTuple.sh.in b/scripts/showTuple.sh.in new file mode 100644 index 00000000..c7df08c7 --- /dev/null +++ b/scripts/showTuple.sh.in @@ -0,0 +1,30 @@ +#!@@CT_bash@@ + +# What we need: +# - the .config file + +# Parse the tools' paths configuration +. "${CT_LIB_DIR}/paths.mk" + +# We'll need the stdout later, save it +exec 7>&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 + +# 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}" >&7 |