tools: Make sethost.sh can be invoke from any directory
This commit is contained in:
parent
73b655f3b2
commit
8a6d67d138
@ -282,6 +282,4 @@ fi
|
|||||||
# The saved defconfig files are all in compressed format and must be
|
# The saved defconfig files are all in compressed format and must be
|
||||||
# reconstitued before they can be used.
|
# reconstitued before they can be used.
|
||||||
|
|
||||||
cd ${TOPDIR} || { echo "Failed to cd to ${TOPDIR}"; exit 10; }
|
${TOPDIR}/tools/sethost.sh $debug $host
|
||||||
|
|
||||||
./tools/sethost.sh $debug $host
|
|
||||||
|
@ -125,6 +125,9 @@ if [ ! -z "$1" ]; then
|
|||||||
showusage
|
showusage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
WD=`test -d ${0%/*} && cd ${0%/*}; pwd`
|
||||||
|
cd $WD
|
||||||
|
|
||||||
if [ -x sethost.sh ]; then
|
if [ -x sethost.sh ]; then
|
||||||
nuttx=$PWD/..
|
nuttx=$PWD/..
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user