tools/testbuild.sh: Changes needed for testing the simulator under Cygwin
This commit is contained in:
parent
1c8216a6ce
commit
00e0ff54e8
2
configs
2
configs
@ -1 +1 @@
|
|||||||
Subproject commit ee8c7ecbcba5a420e39de92502f7649f8baff169
|
Subproject commit 1c21c243d0a4a426940a87b3519f9a8ff059302f
|
@ -49,7 +49,7 @@ function showusage {
|
|||||||
echo "where"
|
echo "where"
|
||||||
echo " -w|l selects Windows (w) or Linux (l). Default: Linux"
|
echo " -w|l selects Windows (w) or Linux (l). Default: Linux"
|
||||||
echo " -c|n selects Windows native (n) or Cygwin (c). Default Cygwin"
|
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 " -h will show this help test and terminate"
|
||||||
echo " <testlist-file> selects the list of configurations to test. No default"
|
echo " <testlist-file> selects the list of configurations to test. No default"
|
||||||
echo ""
|
echo ""
|
||||||
@ -73,7 +73,7 @@ while [ ! -z "$1" ]; do
|
|||||||
wenv=cygwin
|
wenv=cygwin
|
||||||
;;
|
;;
|
||||||
-n )
|
-n )
|
||||||
wenv=n
|
wenv=native
|
||||||
;;
|
;;
|
||||||
-s )
|
-s )
|
||||||
sizet=long
|
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_MSYS
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER
|
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
|
else
|
||||||
echo " Select CONFIG_HOST_WINDOWS=y"
|
echo " Select CONFIG_HOST_WINDOWS=y"
|
||||||
kconfig-tweak --file $nuttx/.config --enable CONFIG_HOST_WINDOWS
|
kconfig-tweak --file $nuttx/.config --enable CONFIG_HOST_WINDOWS
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_LINUX
|
kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_LINUX
|
||||||
|
|
||||||
if [ "X$wenv" == "Xcygwin" ]; then
|
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 --enable CONFIG_WINDOWS_CYGWIN
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
|
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_NATIVE
|
||||||
else
|
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 --enable CONFIG_WINDOWS_NATIVE
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN
|
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_CYGWIN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS
|
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_MSYS
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_WINDOWS_OTHER
|
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
|
fi
|
||||||
|
|
||||||
kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_OSX
|
kconfig-tweak --file $nuttx/.config --disable CONFIG_HOST_OSX
|
||||||
@ -166,7 +173,6 @@ function configure {
|
|||||||
|
|
||||||
if [ "X$sizet" == "Xlong" ]; then
|
if [ "X$sizet" == "Xlong" ]; then
|
||||||
echo " Select CONFIG_CXX_NEWLONG=y"
|
echo " Select CONFIG_CXX_NEWLONG=y"
|
||||||
|
|
||||||
kconfig-tweak --file $nuttx/.config --enable CONFIG_CXX_NEWLONG
|
kconfig-tweak --file $nuttx/.config --enable CONFIG_CXX_NEWLONG
|
||||||
else
|
else
|
||||||
echo " Disable CONFIG_CXX_NEWLONG"
|
echo " Disable CONFIG_CXX_NEWLONG"
|
||||||
|
Loading…
Reference in New Issue
Block a user