diff --git a/tools/testbuild.sh b/tools/testbuild.sh index b01b6ce0da2..a57d4ae4050 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -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 # # 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 provides the relative path to the apps/ directory. Default ../apps" + echo " -t provides the absolute path to top nuttx/ directory. Default $PWD/../nuttx" echo " -n 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"