Re-order architecture specifics.
/trunk/config/target.in | 12 7 5 0 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
3 # Parses all samples on the command line, and for each of them, prints
4 # the versions of the main tools
6 [ "$1" = "-v" ] && opt="$1" && shift
7 [ "$1" = "-w" ] && opt="$1" && shift
9 # GREP_OPTIONS screws things up.
12 # Dump a single sample
13 dump_single_sample() {
15 [ "$1" = "-v" ] && verbose=1 && shift
16 [ "$1" = "-w" ] && wiki=1 && shift
19 if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
20 sample_top="${CT_TOP_DIR}"
23 sample_top="${CT_LIB_DIR}"
26 . "${sample_top}/samples/${sample}/crosstool.config"
27 if [ -z "${wiki}" ]; then
28 printf " %-*s (%s" ${width} "${sample}" "${sample_type}"
29 [ -f "${sample_top}/samples/${sample}/broken" ] && printf ",broken"
31 if [ ${verbose} -ne 0 ]; then
32 echo " OS : ${CT_KERNEL}-${CT_KERNEL_VERSION}"
33 echo " binutils : binutils-${CT_BINUTILS_VERSION}"
34 echo -n " C compiler: ${CT_CC}-${CT_CC_VERSION} (C"
35 [ "${CT_CC_LANG_CXX}" = "y" ] && echo -n ",C++"
36 [ "${CT_CC_LANG_FORTRAN}" = "y" ] && echo -n ",Fortran"
37 [ "${CT_CC_LANG_JAVA}" = "y" ] && echo -n ",Java"
38 [ "${CT_CC_LANG_ADA}" = "y" ] && echo -n ",ADA"
39 [ "${CT_CC_LANG_OBJC}" = "y" ] && echo -n ",Objective-C"
40 [ "${CT_CC_LANG_OBJCXX}" = "y" ] && echo -n ",Objective-C++"
41 [ -n "${CT_CC_LANG_OTHERS}" ] && echo -n ",$CT_CC_LANG_OTHERS}"
43 echo " C library : ${CT_LIBC}-${CT_LIBC_VERSION}"
45 [ "${CT_LIBELF}" ] && echo -n " libelf-${CT_LIBELF_VERSION}"
46 [ "${CT_SSTRIP}" ] && echo -n " sstrip"
47 [ "${CT_DMALLOC}" ] && echo -n " dmalloc-${CT_DMALLOC_VERSION}"
48 [ "${CT_DUMA}" ] && echo -n " duma-${CT_DUMA_VERSION}"
49 [ "${CT_GDB}" ] && echo -n " gdb-${CT_GDB_VERSION}"
50 [ "${CT_LTRACE}" ] && echo -n " ltrace-${CT_LTRACE_VERSION}"
51 [ "${CT_STRACE}" ] && echo -n " strace-${CT_STRACE_VERSION}"
55 echo -n "| ''${sample}'' "
56 echo -n "| ${CT_KERNEL_VERSION} "
57 echo -n "| ${CT_BINUTILS_VERSION} "
58 echo -n "| ${CT_CC_VERSION} "
59 echo -n "| ''${CT_LIBC}'' "
60 echo -n "| ${CT_LIBC_VERSION} "
61 echo -n "| ${CT_THREADS_NPTL:+NPTL}${CT_THREADS_LINUXTHREADS:+linuxthreads}${CT_THREADS_NONE:+none} "
62 echo -n "| ${CT_ARCH_FLOAT_HW:+hard}${CT_ARCH_FLOAT_SW:+soft} float "
64 if [ -f "${sample_top}/samples/${sample}/reported.by" ]; then
65 ( . "${sample_top}/samples/${sample}/reported.by"
66 if [ -n "${reporter_url}" ]; then
67 echo -n "| [[${reporter_url}|${reporter_name}]] "
69 echo -n "| ${reporter_name} "
73 echo -n "| [[http://ymorin.is-a-geek.org/|YEM]] "
79 # Get largest sample width
81 for sample in "${@}"; do
82 [ ${#sample} -gt ${width} ] && width=${#sample}
85 if [ "${opt}" = -w ]; then
86 echo "^ $(date +%Y%m%d.%H%M) ^ |||||||||"
88 echo -n "^ kernel headers\\\\ version "
89 echo -n "^ binutils version "
90 echo -n "^ gcc version "
92 echo -n "^ libc version "
93 echo -n "^ threading model "
94 echo -n "^ float support "
96 echo -n "^ Reported by "
99 for sample in "${@}"; do
100 ( dump_single_sample ${opt} ${width} "${sample}" )