simbit18 opened a new pull request, #20458:
URL: https://github.com/apache/nuttx/pull/20458
## Summary
- CMake added NXP RDDRONE-BMS772 board
- Improved process_all_directory_romfs function
If the `etc_romfs.c` file already exists (and therefore the `etc` folder
does not exist), there is no need to use this function.
```
ifeq ($(CONFIG_ETC_ROMFS),y)
CSRCS += etc_romfs.c
endif
```
## Impact
Impact on user: This PR adds NXP RDDRONE-BMS772 board with CMake build
Impact on build: This PR Implement CMake build for the NXP RDDRONE-BMS772
Impact on hardware: NO
Impact on documentation: NO
Impact on security: NO
Impact on compatibility: NO
## Testing
<details>
<summary>rddrone-bms772:nsh</summary>
```
C:\nuttxpr\nuttx>cmake -B build -DBOARD_CONFIG=rddrone-bms772:nsh -GNinja
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
-- ENV{PROCESSOR_ARCHITECTURE} = AMD64
Select HOST_WINDOWS=y
Select WINDOWS_NATIVE=y
Loaded configuration 'C:/nuttxpr/nuttx/build/.config.compressed'
Minimal configuration saved to 'C:/nuttxpr/nuttx/build/defconfig.tmp'
-- CMake: 3.31.5
-- Ninja: 1.12.1
-- Board: rddrone-bms772
-- Config: nsh
-- Appdir: C:/nuttxpr/apps
-- Building for: Ninja
-- The C compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/mingw/mingw64/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Windows
-- CMake host system processor: AMD64
TOOLS_DIR path is "C:/nuttxpr/nuttx"
HOST = WINDOWS NATIVE
-- Configuring done (1.2s)
-- Generating done (0.1s)
-- Build files have been written to: C:/nuttxpr/nuttx/build/bin_host
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- The ASM compiler identification is GNU
-- Found assembler:
D:/nx20250410/tools/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Configuring done (20.2s)
-- Generating done (4.3s)
-- Build files have been written to: C:/nuttxpr/nuttx/build
C:\nuttxpr\nuttx>cmake --build build
[1158/1159] Linking CXX executable nuttx
Memory region Used Size Region Size %age Used
vflash: 652 B 1 KB 63.67%
pflash: 16 B 16 B 100.00%
dflash: 93420 B 523248 B 17.85%
sram: 6268 B 60 KB 10.20%
[1159/1159] Generating nuttx.bin
```
</details>
--
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]