+secured=1
+gbscommand="gbs build -A armv7l "
+
+for ARGUMENT_VALUE in $*
+do
+ echo $ARGUMENT_VALUE
+ if [[ "$ARGUMENT_VALUE" = *"="* ]]; then
+ optionname=$(echo $ARGUMENT_VALUE | cut -f1 -d=)
+ optionvalue=$(echo $ARGUMENT_VALUE | cut -f2 -d=)
+ echo -- "# $optionname $optionvalue"
+ gbscommand=${gbscommand}" --define '$optionname $optionvalue'"
+
+ if [ "SECURED" = "$optionname" ]; then
+ secured=$optionvalue
+ fi
+ else
+ echo "'$ARGUMENT_VALUE' does not contain '='";
+ fi
+done
+
+gbscommand="${gbscommand} -B ~/GBS-ROOT-OIC --include-all --repository ./"
+
+if [ $secured -eq 1 ];then
+ echo `pwd`
+ # Prepare mbedTLS dependency
+ $SHELL ./extlibs/mbedtls/prep.sh
+fi
+
+# Prepare TinyCBOR dependency
+$SHELL ./extlibs/tinycbor/prep.sh