ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/scripts/gettools.sh b/scripts/gettools.sh
new file mode 100755
index 0000000..211b4eb
--- /dev/null
+++ b/scripts/gettools.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+export LANG=C
+export LC_ALL=C
+BITNUM=$(getconf LONG_BIT)
+#TOPDIR=/home/lianghu/openwrt
+#TOOLDIR="$TOPDIR/owtoolchain/linux$BITNUM"
+#Note: the TOPDIR variable can't be transferred into the sript by test!
+#      However, this script will be run only in the TOPDIR in toplevel.mk
+#      So we get some lazy method here like below
+TOOLDIR="owtoolchain/linux$BITNUM"
+HOSTDIR="host/linux$BITNUM"
+if [ -d $TOOLDIR ] && [ -d $HOSTDIR ]; then
+	NONEXIST=0
+else
+	NONEXIST=1
+fi
+echo "$NONEXIST"