simbit18 opened a new pull request, #16402:
URL: https://github.com/apache/nuttx/pull/16402
## Summary
More aligned to the tools/Makefile.host file
Added:
- The option() command It provides a way to enable or disable targets of
the project based on the user's preference.
Default
option(NUTTX_INCLUDE_ALL_TOOLS "Build all NuttX Host Tools" ON)
- Checking host system for compilation options.
- Tools configure, mkconfig, mksymtab and mkversion.
## Impact
Impact on user: NO
Impact on build: NO
Impact on hardware: NO
Impact on documentation: NO
Impact on security: NO
Impact on compatibility: NO
## Testing
locally MSYS2 and Windows Native
building only mkversion
cmake -B build -DNUTTX_INCLUDE_ALL_TOOLS=OFF -DNUTTX_INCLUDE_MKVERSION=ON
```
test@TEST MSYS ~/nuttx/tools
$ cmake -B build -DNUTTX_INCLUDE_ALL_TOOLS=OFF -DNUTTX_INCLUDE_MKVERSION=ON
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: MSYS
-- CMake host system processor: x86_64
TOOLS_DIR path is "/home/test/nuttx"
HOST = WINDOWS MSYS
-- Configuring done (1.5s)
-- Generating done (0.0s)
-- Build files have been written to: /home/test/nuttx/tools/build
test@TEST MSYS ~/nuttx/tools
$ cmake --build build
[ 33%] Building C object CMakeFiles/mkversion.dir/mkversion.c.o
[ 66%] Building C object CMakeFiles/mkversion.dir/cfgdefine.c.o
[100%] Linking C executable mkversion.exe
[100%] Built target mkversion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]