add option -o

use this to pass a toolchain file to use
This commit is contained in:
Arne Morten Kvarving 2017-01-16 14:25:06 +01:00
parent 0472d99fc8
commit 0466d71d15

View File

@ -57,7 +57,7 @@ test -z "$BUILDTHREADS" && BUILDTHREADS=1
PULL_REQUESTS=
[ $# -eq 0 ] && usage
while getopts "d:w:p:t:h" arg; do
while getopts "d:w:p:t:o:h" arg; do
case $arg in
d) # OPM Data path to use
echo "OPM_DATA ${OPTARG}"
@ -75,6 +75,10 @@ while getopts "d:w:p:t:h" arg; do
echo "PULL_REQUESTS ${OPTARG}"
PULL_REQUESTS=${OPTARG}
;;
o) # Use given toolchain file
echo "Using ${OPTARG} toolchain"
CMAKE_TOOLCHAIN_FILES=${OPTARG}
;;
h) # Display help.
usage
exit 0
@ -98,6 +102,8 @@ export OPM_DATA_ROOT_PREDEFINED="$OPM_DATA"
export OPM_DATA_ROOT="$OPM_DATA"
export WORKSPACE
export BUILDTHREADS
export BTYPES=serial
export CMAKE_TOOLCHAIN_FILES
export ghprbCommentBody="$PULL_REQUESTS"