mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: toaster: remove bashisms so script works in dash as well
[YOCTO #8217] (Bitbake rev: be2d04c1831608922f90da03cb26d7fd5c863a47) Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8068aa3b0f
commit
0dcc96323c
+4
-5
@@ -162,7 +162,7 @@ RUNNING=0
|
|||||||
NOTOASTERUI=0
|
NOTOASTERUI=0
|
||||||
WEBSERVER=1
|
WEBSERVER=1
|
||||||
TOASTER_BRBE=""
|
TOASTER_BRBE=""
|
||||||
if [ "$WEB_PORT" == "" ]; then
|
if [ "$WEB_PORT" = "" ]; then
|
||||||
WEB_PORT="8000"
|
WEB_PORT="8000"
|
||||||
fi
|
fi
|
||||||
# this is the configuraton file we are using for toaster
|
# this is the configuraton file we are using for toaster
|
||||||
@@ -172,13 +172,13 @@ fi
|
|||||||
# note: for future there are a number of relative path assumptions
|
# note: for future there are a number of relative path assumptions
|
||||||
# in the local layers that currently prevent using an arbitrary
|
# in the local layers that currently prevent using an arbitrary
|
||||||
# toasterconf.json
|
# toasterconf.json
|
||||||
if [ "$TOASTER_CONF" == "" ]; then
|
if [ "$TOASTER_CONF" = "" ]; then
|
||||||
BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
|
BIN_DIR=$(dirname -- "$0")
|
||||||
export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
|
export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
|
||||||
fi
|
fi
|
||||||
if [ ! -f $TOASTER_CONF ]; then
|
if [ ! -f $TOASTER_CONF ]; then
|
||||||
echo "$TOASTER_CONF configuration file not found, exiting..."
|
echo "$TOASTER_CONF configuration file not found, exiting..."
|
||||||
exit -1
|
exit 1;
|
||||||
fi
|
fi
|
||||||
# this defines the dir toaster will use for
|
# this defines the dir toaster will use for
|
||||||
# 1) clones of layers (in _toaster_clones )
|
# 1) clones of layers (in _toaster_clones )
|
||||||
@@ -375,4 +375,3 @@ case $CMD in
|
|||||||
echo "Successful ${CMD}."
|
echo "Successful ${CMD}."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user