From 00e0ff54e80859b1fa13da96a8404e401facca4a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 30 Nov 2015 13:06:16 -0600 Subject: [PATCH] tools/testbuild.sh: Changes needed for testing the simulator under Cygwin --- configs | 2 +- tools/testbuild.sh | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/configs b/configs index ee8c7ecbcb..1c21c243d0 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit ee8c7ecbcba5a420e39de92502f7649f8baff169 +Subproject commit 1c21c243d0a4a426940a87b3519f9a8ff059302f diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 65d8e10f93..594c58db2f 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -49,7 +49,7 @@ function showusage { echo "where" echo " -w|l selects Windows (w) or Linux (l). Default: Linux" echo " -c|n selects Windows native (n) or Cygwin (c). Default Cygwin" - echo " -s Use C++ long size_t in new operator. Default unsigned long" + echo " -s Use C++ unsigned long size_t in new operator. Default unsigned int" echo " -h will show this help test and terminate" echo " selects the list of configurations to test. No default" echo "" @@ -73,7 +73,7 @@ while [ ! -z "$1" ]; do wenv=cygwin ;; -n ) - wenv=n + wenv=native ;; -s ) sizet=long @@ -142,23 +142,30 @@ function configure { kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER + kconfig-tweak --file $nuttx/.config --enable CONFIG_SIM_X8664_SYSTEMV + kconfig-tweak --file $nuttx/.config --disable CONFIG_SIM_X8664_MICROSOFT + kconfig-tweak --file $nuttx/.config --disable CONFIG_SIM_M32 else echo " Select CONFIG_HOST_WINDOWS=y" kconfig-tweak --file $nuttx/.config --enable CONFIG_HOST_WINDOWS kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_LINUX if [ "X$wenv" == "Xcygwin" ]; then - echo " Select CONFIG_HOST_CYGWIN=y" + echo " Select CONFIG_WINDOWS_CYGWIN=y" kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_CYGWIN kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE else - echo " Select CONFIG_HOST_MSYS=y" + echo " Select CONFIG_WINDOWS_NATIVE=y" kconfig-tweak --file $nuttx/.config --enable CONFIG_WINDOWS_NATIVE kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN fi kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER + + kconfig-tweak --file $nuttx/.config --enable CONFIG_SIM_X8664_MICROSOFT + kconfig-tweak --file $nuttx/.config --disable CONFIG_SIM_X8664_SYSTEMV + kconfig-tweak --file $nuttx/.config --disable CONFIG_SIM_M32 fi kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_OSX @@ -166,7 +173,6 @@ function configure { if [ "X$sizet" == "Xlong" ]; then echo " Select CONFIG_CXX_NEWLONG=y" - kconfig-tweak --file $nuttx/.config --enable CONFIG_CXX_NEWLONG else echo " Disable CONFIG_CXX_NEWLONG"