blob: 211b4ebcb2e6a659a2f03c7b288b54c932a3e8db [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/usr/bin/env bash
2export LANG=C
3export LC_ALL=C
4BITNUM=$(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
10TOOLDIR="owtoolchain/linux$BITNUM"
11HOSTDIR="host/linux$BITNUM"
12if [ -d $TOOLDIR ] && [ -d $HOSTDIR ]; then
13 NONEXIST=0
14else
15 NONEXIST=1
16fi
17echo "$NONEXIST"