mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-05-21 16:37:07 +02:00
command line switch for cleaning build
This commit is contained in:
parent
f5d2efe459
commit
9232513c6d
@ -14,10 +14,11 @@ GIT_ACCOUNT=OpenSolo
|
|||||||
GIT_REPO=3dr-arm-yocto-bsp
|
GIT_REPO=3dr-arm-yocto-bsp
|
||||||
GIT_BRANCH=master
|
GIT_BRANCH=master
|
||||||
BUILD_MACHINE=both
|
BUILD_MACHINE=both
|
||||||
|
CLEAN=clean
|
||||||
|
|
||||||
|
|
||||||
# Check command line options for git account, repo, and branch.
|
# Check command line options for git account, repo, and branch.
|
||||||
while getopts a:r:b:m: option
|
while getopts a:r:b:m:c: option
|
||||||
do
|
do
|
||||||
case ${option}
|
case ${option}
|
||||||
in
|
in
|
||||||
@ -25,10 +26,11 @@ do
|
|||||||
r) GIT_REPO=${OPTARG};;
|
r) GIT_REPO=${OPTARG};;
|
||||||
b) GIT_BRANCH=${OPTARG};;
|
b) GIT_BRANCH=${OPTARG};;
|
||||||
m) BUILD_MACHINE=$${OPTARG};;
|
m) BUILD_MACHINE=$${OPTARG};;
|
||||||
|
c) CLEAN=${OPTARG};;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Promt for what is about to execute
|
# Prompt for what is about to execute
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo "Ready to initialize the "$GIT_ACCOUNT $GIT_REPO" repo using branch "$GIT_BRANCH
|
echo "Ready to initialize the "$GIT_ACCOUNT $GIT_REPO" repo using branch "$GIT_BRANCH
|
||||||
@ -69,15 +71,20 @@ fi
|
|||||||
#bitbake pixhawk-firmware -v
|
#bitbake pixhawk-firmware -v
|
||||||
#TIP: -k means continue-after-error-for-as-much-as-possible
|
#TIP: -k means continue-after-error-for-as-much-as-possible
|
||||||
|
|
||||||
# these clean command/s are very verbose, and return an error code even though the clean works, lets quieten them:
|
|
||||||
echo "solo clean started..."
|
|
||||||
MACHINE=imx6solo-3dr-1080p bitbake world -c cleansstate -f -k 2>&1 > /dev/null
|
|
||||||
echo "...solo clean finished."
|
|
||||||
|
|
||||||
echo "controller clean started..."
|
if [ $CLEAN = clean ]
|
||||||
MACHINE=imx6solo-3dr-artoo bitbake world -c cleansstate -f -k 2>&1 > /dev/null
|
then
|
||||||
echo "...controller clean finished"
|
# these clean command/s are very verbose, and return an error code even though the clean works, lets quieten them:
|
||||||
|
echo "solo clean started..."
|
||||||
|
MACHINE=imx6solo-3dr-1080p bitbake world -c cleansstate -f -k 2>&1 > /dev/null
|
||||||
|
echo "...solo clean finished."
|
||||||
|
|
||||||
|
echo "controller clean started..."
|
||||||
|
MACHINE=imx6solo-3dr-artoo bitbake world -c cleansstate -f -k 2>&1 > /dev/null
|
||||||
|
echo "...controller clean finished"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
MACHINE=imx6solo-3dr-1080p bitbake 3dr-solo
|
MACHINE=imx6solo-3dr-1080p bitbake 3dr-solo
|
||||||
if [ ! $? -eq 0 ]
|
if [ ! $? -eq 0 ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user