b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | export LANG=C |
| 3 | export LC_ALL=C |
| 4 | BITNUM=$(getconf LONG_BIT) |
| 5 | #TOPDIR=/home/lianghu/openwrt |
| 6 | #TOOLDIR="$TOPDIR/owtoolchain/linux$BITNUM" |
| 7 | #Note: the TOPDIR variable can't be transferred into the sript by test! |
| 8 | # However, this script will be run only in the TOPDIR in toplevel.mk |
| 9 | # So we get some lazy method here like below |
| 10 | TOOLDIR="owtoolchain/linux$BITNUM" |
| 11 | HOSTDIR="host/linux$BITNUM" |
| 12 | if [ -d $TOOLDIR ] && [ -d $HOSTDIR ]; then |
| 13 | NONEXIST=0 |
| 14 | else |
| 15 | NONEXIST=1 |
| 16 | fi |
| 17 | echo "$NONEXIST" |