tools/testbuild.sh: Add option to specific location of nuttx directory.

This commit is contained in:
Gregory Nutt
2018-06-27 12:27:34 -06:00
parent 5889a2397c
commit 7415f62891
+6 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# testbuild.sh
#
# Copyright (C) 2016-2017 Gregory Nutt. All rights reserved.
# Copyright (C) 2016-2018 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -58,6 +58,7 @@ function showusage {
echo " Windows 10 (u), or Windows native (n). Default Cygwin"
echo " -s Use C++ unsigned long size_t in new operator. Default unsigned int"
echo " -a <appsdir> provides the relative path to the apps/ directory. Default ../apps"
echo " -t <topdir> provides the absolute path to top nuttx/ directory. Default $PWD/../nuttx"
echo " -n <nxdir> provides the relative path to the NxWidgets/ directory. Default ../NxWidgets"
echo " -d enables script debug output"
echo " -x exit on build failures"
@@ -107,6 +108,10 @@ while [ ! -z "$1" ]; do
shift
APPSDIR="$1"
;;
-t )
shift
nuttx="$1"
;;
-n )
shift
NXWDIR="$1"