mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
tools/testbuild.sh: Add option to specific location of nuttx directory.
This commit is contained in:
+6
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user