Skip to content
Snippets Groups Projects
Commit 13d2fe6e authored by Gregory Nutt's avatar Gregory Nutt
Browse files

tools/configure.sh: Add special support so that you can start with a a windows...

tools/configure.sh: Add special support so that you can start with a a windows native configuration and install on a different host (and vice versa).
parent 3f468579
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,9 @@ CONFIG_START_MONTH=2
CONFIG_START_YEAR=2007
CONFIG_STDIO_DISABLE_BUFFERING=y
CONFIG_TASK_NAME_SIZE=0
CONFIG_UART_RXBUFSIZE=32
CONFIG_UART_RXBUFSIZE=64
CONFIG_UART_SERIAL_CONSOLE=y
CONFIG_UART_TXBUFSIZE=32
CONFIG_UART_TXBUFSIZE=64
CONFIG_USER_ENTRYPOINT="ostest_main"
CONFIG_USERMAIN_STACKSIZE=1024
CONFIG_WDOG_INTRESERVE=0
......
......@@ -169,10 +169,27 @@ fi
# (2) The CONFIG_APPS_DIR setting to see if there is a configured location for the
# application directory. This can be overridden from the command line.
winnative=`grep CONFIG_WINDOWS_NATIVE= "${src_config}" | cut -d'=' -f2`
# If we are going to some host other then windows native or to a windows
# native host, then don't even check what is in the defconfig file.
oldnative=`grep CONFIG_WINDOWS_NATIVE= "${src_config}" | cut -d'=' -f2`
if [ "X$host" != "Xwindows" -o "X$wenv" != "Xnative" ]; then
unset winnative
else
if [ "X$host" == "Xwindows" -a "X$wenv" == "Xnative" ]; then
winnative=y
else
winnative=$oldnative
fi
fi
# If not application direction was specified on the command line and we are
# switching between a windows native host and some other host then ignore the
# path to the apps/ direction in the defconfig file. It will most certainly
# not be a usable forma.
defappdir=y
if [ -z "${appdir}" ]; then
if [ -z "${appdir}" -a "X$oldnative" = "$winnative" ]; then
quoted=`grep "^CONFIG_APPS_DIR=" "${src_config}" | cut -d'=' -f2`
if [ ! -z "${quoted}" ]; then
appdir=`echo ${quoted} | sed -e "s/\"//g"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment