mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 20:35:40 +00:00
Merge pull request #3084 from sbutcher-arm/output_env-enhancements-2.7
Backport 2.7: Enhance the `output_env.sh` script with GBD and Distro version
This commit is contained in:
commit
3756128a65
|
@ -23,11 +23,15 @@ print_version()
|
||||||
shift
|
shift
|
||||||
ARGS="$1"
|
ARGS="$1"
|
||||||
shift
|
shift
|
||||||
FAIL_MSG="$1"
|
VARIANT=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if ! `type "$BIN" > /dev/null 2>&1`; then
|
if [ -n "$VARIANT" ]; then
|
||||||
echo "* $FAIL_MSG"
|
VARIANT=" ($VARIANT)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! type "$BIN" > /dev/null 2>&1; then
|
||||||
|
echo " * ${BIN##*/}$VARIANT: Not found."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -41,76 +45,97 @@ print_version()
|
||||||
VERSION_STR=`echo "$VERSION_STR" | $FILTER`
|
VERSION_STR=`echo "$VERSION_STR" | $FILTER`
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "* ${BIN##*/}: $BIN: $VERSION_STR"
|
echo " * ${BIN##*/}$VARIANT: ${BIN} : ${VERSION_STR} "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "** Platform:"
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ `uname -s` = "Linux" ]; then
|
||||||
|
echo "Linux variant"
|
||||||
|
lsb_release -d -c
|
||||||
|
else
|
||||||
|
echo "Unknown Unix variant"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
print_version "uname" "-a" ""
|
print_version "uname" "-a" ""
|
||||||
echo
|
echo
|
||||||
|
echo
|
||||||
|
echo "** Tool Versions:"
|
||||||
|
echo
|
||||||
|
|
||||||
if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
|
if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
|
||||||
: "${ARMC5_CC:=armcc}"
|
: "${ARMC5_CC:=armcc}"
|
||||||
print_version "$ARMC5_CC" "--vsn" "armcc not found!" "head -n 2"
|
print_version "$ARMC5_CC" "--vsn" "" "head -n 2"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
: "${ARMC6_CC:=armclang}"
|
: "${ARMC6_CC:=armclang}"
|
||||||
print_version "$ARMC6_CC" "--vsn" "armclang not found!" "head -n 2"
|
print_version "$ARMC6_CC" "--vsn" "" "head -n 2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_version "arm-none-eabi-gcc" "--version" "gcc-arm not found!" "head -n 1"
|
print_version "arm-none-eabi-gcc" "--version" "" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
print_version "gcc" "--version" "gcc not found!" "head -n 1"
|
print_version "gcc" "--version" "" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
print_version "clang" "--version" "clang not found" "head -n 2"
|
print_version "clang" "--version" "" "head -n 2"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
print_version "ldd" "--version" \
|
print_version "ldd" "--version" "" "head -n 1"
|
||||||
"No ldd present: can't determine libc version!" \
|
|
||||||
"head -n 1"
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
print_version "valgrind" "--version" "valgrind not found!"
|
print_version "valgrind" "--version" ""
|
||||||
|
echo
|
||||||
|
|
||||||
|
print_version "gdb" "--version" "" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
: ${OPENSSL:=openssl}
|
: ${OPENSSL:=openssl}
|
||||||
print_version "$OPENSSL" "version" "openssl not found!"
|
print_version "$OPENSSL" "version" "default"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -n "${OPENSSL_LEGACY+set}" ]; then
|
if [ -n "${OPENSSL_LEGACY+set}" ]; then
|
||||||
print_version "$OPENSSL_LEGACY" "version" "openssl legacy version not found!"
|
print_version "$OPENSSL_LEGACY" "version" "legacy"
|
||||||
echo
|
else
|
||||||
|
echo " * openssl (legacy): Not configured."
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
: ${GNUTLS_CLI:=gnutls-cli}
|
: ${GNUTLS_CLI:=gnutls-cli}
|
||||||
print_version "$GNUTLS_CLI" "--version" "gnuTLS client not found!" "head -n 1"
|
print_version "$GNUTLS_CLI" "--version" "default" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
: ${GNUTLS_SERV:=gnutls-serv}
|
: ${GNUTLS_SERV:=gnutls-serv}
|
||||||
print_version "$GNUTLS_SERV" "--version" "gnuTLS server not found!" "head -n 1"
|
print_version "$GNUTLS_SERV" "--version" "default" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then
|
if [ -n "${GNUTLS_LEGACY_CLI+set}" ]; then
|
||||||
print_version "$GNUTLS_LEGACY_CLI" "--version" \
|
print_version "$GNUTLS_LEGACY_CLI" "--version" "legacy" "head -n 1"
|
||||||
"gnuTLS client legacy version not found!" \
|
|
||||||
"head -n 1"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then
|
|
||||||
print_version "$GNUTLS_LEGACY_SERV" "--version" \
|
|
||||||
"gnuTLS server legacy version not found!" \
|
|
||||||
"head -n 1"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if `hash dpkg > /dev/null 2>&1`; then
|
|
||||||
echo "* asan:"
|
|
||||||
dpkg -s libasan2 2> /dev/null | grep -i version
|
|
||||||
dpkg -s libasan1 2> /dev/null | grep -i version
|
|
||||||
dpkg -s libasan0 2> /dev/null | grep -i version
|
|
||||||
else
|
else
|
||||||
echo "* No dpkg present: can't determine asan version!"
|
echo " * gnutls-cli (legacy): Not configured."
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [ -n "${GNUTLS_LEGACY_SERV+set}" ]; then
|
||||||
|
print_version "$GNUTLS_LEGACY_SERV" "--version" "legacy" "head -n 1"
|
||||||
|
else
|
||||||
|
echo " * gnutls-serv (legacy): Not configured."
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo " * Installed asan versions:"
|
||||||
|
if type dpkg-query >/dev/null 2>/dev/null; then
|
||||||
|
if ! dpkg-query -f '${Status} ${Package}: ${Version}\n' -W 'libasan*' |
|
||||||
|
awk '$3 == "installed" && $4 !~ /-/ {print $4, $5}' |
|
||||||
|
grep .
|
||||||
|
then
|
||||||
|
echo " No asan versions installed."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo " Unable to determine the asan version without dpkg."
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue