Commit ed407902 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

Merge branch 'master' into rocko

parents 59a133b0 f0be48d5
#!/bin/bash #!/bin/bash
#ls -all #ls -all
args="$@" args="$@"
arg0=$0 arg0=$0
#echo "arg0=" $arg0 #echo "arg0=" $arg0
#echo "args=" $args #echo "args=" $args
while (( "$#" )); do while (( "$#" )); do
shift shift
done done
#DIR0="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=$(dirname $(dirname $(dirname $(realpath $(dirname $(dirname $arg0))/sysroots))))
echo "DIR=" $DIR DIR=$(realpath $(dirname $(dirname $arg0))/sysroots)
# works for Poky Jethro - Rocko
# move up until Poky's init script is found
while ([ ! -f $DIR/oe-init-build-env ]);do
DIR=$(dirname $DIR)
if [ "e$DIR" = 'e/' ]; then
break
fi
done
echo "DIR= $DIR"
echo "Launching bitbake $args" echo "Launching bitbake $args"
#cd $DIR0/../../poky #cd $DIR0/../../poky
cd $DIR cd $DIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment