mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
[samples] Don't mix canadian samples with non-canadian ones.
- save the canadian smples in their own way, so as not to mix non-canadian samples with canadian ones - list canadian samples with the host information
This commit is contained in:
parent
f65cb24909
commit
5a4ac4ed36
@ -62,6 +62,7 @@ CT_LOG_LEVEL_MAX="WARN"
|
|||||||
# Compute the name of the sample directory
|
# Compute the name of the sample directory
|
||||||
case "${CT_TOOLCHAIN_TYPE}" in
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
cross) samp_name="${CT_TARGET}";;
|
cross) samp_name="${CT_TARGET}";;
|
||||||
|
canadian) samp_name="${CT_HOST},${CT_TARGET}";;
|
||||||
*) CT_Abort "Unsupported toolchain type '${CT_TOOLCHAIN_TYPE}'";;
|
*) CT_Abort "Unsupported toolchain type '${CT_TOOLCHAIN_TYPE}'";;
|
||||||
esac
|
esac
|
||||||
samp_dir="samples/${samp_name}"
|
samp_dir="samples/${samp_name}"
|
||||||
|
@ -34,6 +34,12 @@ dump_single_sample() {
|
|||||||
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X" || printf " "
|
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X" || printf " "
|
||||||
echo "]"
|
echo "]"
|
||||||
if [ ${verbose} -ne 0 ]; then
|
if [ ${verbose} -ne 0 ]; then
|
||||||
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
|
cross) ;;
|
||||||
|
canadian)
|
||||||
|
printf " Host : ${CT_HOST}\n"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
echo " OS : ${CT_KERNEL}${CT_KERNEL_VERSION:+-}${CT_KERNEL_VERSION}"
|
echo " OS : ${CT_KERNEL}${CT_KERNEL_VERSION:+-}${CT_KERNEL_VERSION}"
|
||||||
if [ "${CT_GMP_MPFR}" = "y" ]; then
|
if [ "${CT_GMP_MPFR}" = "y" ]; then
|
||||||
echo " GMP/MPFR : gmp-${CT_GMP_VERSION} / mpfr-${CT_MPFR_VERSION}"
|
echo " GMP/MPFR : gmp-${CT_GMP_VERSION} / mpfr-${CT_MPFR_VERSION}"
|
||||||
@ -64,8 +70,13 @@ dump_single_sample() {
|
|||||||
printf "| "
|
printf "| "
|
||||||
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
|
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
|
||||||
[ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
|
[ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
|
||||||
printf ' '
|
printf ' | '
|
||||||
printf "| ''${CT_KERNEL}'' |"
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
|
cross) ;;
|
||||||
|
canadian) printf "${CT_HOST}";;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
printf " | ''${CT_KERNEL}'' |"
|
||||||
if [ "${CT_KERNEL}" != "bare-metal" ];then
|
if [ "${CT_KERNEL}" != "bare-metal" ];then
|
||||||
if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
|
if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
|
||||||
printf " //custom// "
|
printf " //custom// "
|
||||||
@ -102,13 +113,7 @@ dump_single_sample() {
|
|||||||
printf "| [[http://ymorin.is-a-geek.org/|YEM]] "
|
printf "| [[http://ymorin.is-a-geek.org/|YEM]] "
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
sample_updated=$(date -u "+%Y%m%d" \
|
sample_updated="$( hg log -l 1 --template '{date|shortdate}' "${sample_top}/samples/${sample}" )"
|
||||||
-d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
|
|
||||||
|GREP_OPTIONS= "${grep}" -E '^Last Changed Date:' \
|
|
||||||
|"${sed}" -r -e 's/^[^:]+: //;' \
|
|
||||||
-e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
|
|
||||||
)" \
|
|
||||||
)
|
|
||||||
printf "| ${sample_updated} "
|
printf "| ${sample_updated} "
|
||||||
echo "|"
|
echo "|"
|
||||||
fi
|
fi
|
||||||
@ -124,6 +129,7 @@ if [ "${opt}" = -w ]; then
|
|||||||
echo "^ @@DATE@@ ^ |||||||||||||"
|
echo "^ @@DATE@@ ^ |||||||||||||"
|
||||||
printf "^ Target "
|
printf "^ Target "
|
||||||
printf "^ Status "
|
printf "^ Status "
|
||||||
|
printf "^ Host "
|
||||||
printf "^ Kernel headers\\\\\\\\ version ^"
|
printf "^ Kernel headers\\\\\\\\ version ^"
|
||||||
printf "^ binutils\\\\\\\\ version "
|
printf "^ binutils\\\\\\\\ version "
|
||||||
printf "^ C compiler\\\\\\\\ version ^"
|
printf "^ C compiler\\\\\\\\ version ^"
|
||||||
|
Loading…
Reference in New Issue
Block a user