mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
tools/configure.bat: Update configure.bat so that it works like configure.sh and integrates properly with configure.c. Also update the README.txt file with a few native build clarifications.
This commit is contained in:
parent
bc8edaf6c2
commit
b3fd644f1b
2 changed files with 34 additions and 6 deletions
20
README.txt
20
README.txt
|
@ -795,9 +795,10 @@ NuttX Configuration Tool
|
||||||
An automated tool has been incorporated to support re-configuration
|
An automated tool has been incorporated to support re-configuration
|
||||||
of NuttX. This tool is based on the kconfig-frontends application available
|
of NuttX. This tool is based on the kconfig-frontends application available
|
||||||
at https://bitbucket.org/nuttx/tools/src/master/kconfig-frontends/. (This
|
at https://bitbucket.org/nuttx/tools/src/master/kconfig-frontends/. (This
|
||||||
is a snapshot of http://ymorin.is-a-geek.org/projects/kconfig-frontends.)
|
is a snapshot of the old http://ymorin.is-a-geek.org/projects/kconfig-frontends
|
||||||
This application provides a tool called 'kconfig-mconf' that is used by the
|
which is no longer available.) This application provides a tool called
|
||||||
NuttX top-level Makefile. The following make target is provided:
|
'kconfig-mconf' that is used by the NuttX top-level Makefile. The following
|
||||||
|
make target is provided:
|
||||||
|
|
||||||
make menuconfig
|
make menuconfig
|
||||||
|
|
||||||
|
@ -1466,10 +1467,19 @@ Native Windows Build
|
||||||
instead if you know what you are doing and want a faster download (No, I
|
instead if you know what you are doing and want a faster download (No, I
|
||||||
can't tell you which packages you should or should not download).
|
can't tell you which packages you should or should not download).
|
||||||
|
|
||||||
|
NOTE: It should be possible to use Cygwin or MSYS2 in place of the GNUWin32
|
||||||
|
tools. There are, however, complexities in doing that because those tools
|
||||||
|
depend on the shell environment and use DLLs that are not found (at least
|
||||||
|
not without the correct setup).
|
||||||
|
|
||||||
Host Compiler: I use the MingGW GCC compiler which can be downloaded from
|
Host Compiler: I use the MingGW GCC compiler which can be downloaded from
|
||||||
http://www.mingw.org/. If you are using GNUWin32, then it is recommended
|
http://www.mingw.org/. If you are using GNUWin32, then it is recommended
|
||||||
the you not install the optional MSYS components as there may be conflicts.
|
the you not install the optional MSYS components as there may be conflicts.
|
||||||
|
|
||||||
|
Kconfig-frontends: See the section entitled "NuttX Configuration Tool
|
||||||
|
under DOS" for information about installing the kconfig-frontend tools to
|
||||||
|
run natively under Windows.
|
||||||
|
|
||||||
This capability should still be considered a work in progress because:
|
This capability should still be considered a work in progress because:
|
||||||
|
|
||||||
(1) It has not been verified on all targets and tools, and
|
(1) It has not been verified on all targets and tools, and
|
||||||
|
@ -1542,6 +1552,10 @@ Installing GNUWin32
|
||||||
need to perform a manual installation of the individual ZIP files that you
|
need to perform a manual installation of the individual ZIP files that you
|
||||||
will find in the <this directory>/GetGNUWin32/packages directory.
|
will find in the <this directory>/GetGNUWin32/packages directory.
|
||||||
|
|
||||||
|
9. Make sure that you add the GNUWin32 tools to your path variable:
|
||||||
|
|
||||||
|
set PATH=C:\gnuwin32\bin;%PATH%
|
||||||
|
|
||||||
CYGWIN BUILD PROBLEMS
|
CYGWIN BUILD PROBLEMS
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,18 @@ rem ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
rem POSSIBILITY OF SUCH DAMAGE.
|
rem POSSIBILITY OF SUCH DAMAGE.
|
||||||
rem
|
rem
|
||||||
|
|
||||||
|
if exist tools goto :GoToolDir
|
||||||
|
if exist ..\tools goto :SetToolDir
|
||||||
|
|
||||||
|
echo Cannot find tools\ directory
|
||||||
|
goto End
|
||||||
|
|
||||||
|
:GoToolDir
|
||||||
|
cd tools
|
||||||
|
|
||||||
|
:SetTooldir
|
||||||
|
set tooldir=%CD%
|
||||||
|
|
||||||
rem Parse command line arguments
|
rem Parse command line arguments
|
||||||
|
|
||||||
set debug=
|
set debug=
|
||||||
|
@ -86,6 +98,7 @@ if exist configure.exe goto :HaveConfigureExe
|
||||||
|
|
||||||
set cc=mingw32-gcc.exe
|
set cc=mingw32-gcc.exe
|
||||||
set cflags=-Wall -Wstrict-prototypes -Wshadow -g -pipe -I. -DCONFIG_WINDOWS_NATIVE=y
|
set cflags=-Wall -Wstrict-prototypes -Wshadow -g -pipe -I. -DCONFIG_WINDOWS_NATIVE=y
|
||||||
|
echo %cc% %cflags% -o configure.exe configure.c cfgparser.c
|
||||||
%cc% %cflags% -o configure.exe configure.c cfgparser.c
|
%cc% %cflags% -o configure.exe configure.c cfgparser.c
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ERROR: %cc% failed
|
echo ERROR: %cc% failed
|
||||||
|
@ -94,15 +107,16 @@ if errorlevel 1 (
|
||||||
)
|
)
|
||||||
|
|
||||||
:HaveConfigureExe
|
:HaveConfigureExe
|
||||||
configure.exe %debug% %fmt% %hostopt% %appdir% %config%
|
cd ..
|
||||||
|
tools\configure.exe %debug% %fmt% %hostopt% %appdir% %config%
|
||||||
if errorlevel 1 echo configure.exe failed
|
if errorlevel 1 echo configure.exe failed
|
||||||
goto End
|
goto End
|
||||||
|
|
||||||
:NoConfig
|
:NoConfig
|
||||||
echo Missing ^<board-name^>\configs\^<config-name^> argument
|
echo Missing ^<board-name^>:^<config-name^> argument
|
||||||
|
|
||||||
:ShowUsage
|
:ShowUsage
|
||||||
echo USAGE: %0 [-d] [-b|f] [-a ^<app-dir^>] ^<board-name^>\configs\^<config-name^>
|
echo USAGE: %0 [-d] [-b|f] [-a ^<app-dir^>] ^<board-name^>:^<config-name^>
|
||||||
echo %0 [-h]
|
echo %0 [-h]
|
||||||
echo\nWhere:
|
echo\nWhere:
|
||||||
echo -d:
|
echo -d:
|
||||||
|
|
Loading…
Reference in a new issue