summaryrefslogtreecommitdiff
path: root/misc/buildroot/toolchain/dependencies
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-01-06 13:37:36 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-01-06 13:37:36 +0000
commit68b1c0a591b94fe7ae59da4b929fbd8561f88718 (patch)
tree85590e4e464481fa07613e0563441e2055e2a0d3 /misc/buildroot/toolchain/dependencies
parent22dec0ce41614f36c9e09f77d1145425b64527b3 (diff)
downloadnuttx-68b1c0a591b94fe7ae59da4b929fbd8561f88718.tar.gz
nuttx-68b1c0a591b94fe7ae59da4b929fbd8561f88718.tar.bz2
nuttx-68b1c0a591b94fe7ae59da4b929fbd8561f88718.zip
Add ARM 4.2.4 toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1465 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot/toolchain/dependencies')
-rwxr-xr-xmisc/buildroot/toolchain/dependencies/dependencies.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/misc/buildroot/toolchain/dependencies/dependencies.sh b/misc/buildroot/toolchain/dependencies/dependencies.sh
index 6f42a8746..c071fddc0 100755
--- a/misc/buildroot/toolchain/dependencies/dependencies.sh
+++ b/misc/buildroot/toolchain/dependencies/dependencies.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# vi: set sw=4 ts=4:
-#set -x
+# set -x
echo ""
echo "Checking build system dependencies:"
@@ -165,7 +165,8 @@ if [ -z "$COMPILER" ] ; then
exit 1;
fi;
-COMPILER_VERSION=$($COMPILER --version 2>&1 | head -n1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g")
+COMPILER_VERSION=$($COMPILER -v 2>&1 | $XSED -n '/^gcc version/p' |
+ $XSED -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q')
if [ -z "$COMPILER_VERSION" ] ; then
echo "gcc installed: FALSE"
/bin/echo -e "\n\nYou must install 'gcc' on your build machine\n";
@@ -182,9 +183,9 @@ echo "C compiler version '$COMPILER_VERSION': Ok"
# check for host CXX
-CXXCOMPILER=$(which $HOSTCXX)
+CXXCOMPILER=$(which $HOSTCXX 2>/dev/null)
if [ -z "$CXXCOMPILER" ] ; then
- CXXCOMPILER=$(which c++)
+ CXXCOMPILER=$(which c++ 2>/dev/null)
fi
if [ -z "$CXXCOMPILER" ] ; then
echo "C++ Compiler installed: FALSE"
@@ -192,7 +193,8 @@ if [ -z "$CXXCOMPILER" ] ; then
#exit 1
fi
if [ ! -z "$CXXCOMPILER" ] ; then
- CXXCOMPILER_VERSION=$($CXXCOMPILER --version 2>&1 | head -n1 | $XSED -e 's/^.*(.CC) \([0-9\.]\)/\1/g' -e "s/[-\ ].*//g")
+ CXXCOMPILER_VERSION=$($CXXCOMPILER -v 2>&1 | $XSED -n '/^gcc version/p' |
+ $XSED -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q')
if [ -z "$CXXCOMPILER_VERSION" ] ; then
echo "c++ installed: FALSE"
/bin/echo -e "\nYou may have to install 'g++' on your build machine\n"