comejv commented on issue #16689:
URL: https://github.com/apache/nuttx/issues/16689#issuecomment-3049547752

   Currently I'm using cmake to build nuttx and other firmwares at the same 
time, like this:
   ```cmake
   ExternalProject_Add(
     nuttx_firmware
     SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/nuttx"
     CONFIGURE_COMMAND
       ${CMAKE_COMMAND}
       -S "${CMAKE_CURRENT_SOURCE_DIR}/external/nuttx"
       -B "${CMAKE_CURRENT_BINARY_DIR}/nuttx_build"
       -G "Ninja"
       -DBOARD_CONFIG=nucleo-h743zi:nsh
       -DNUTTX_APPS_DIR=${CMAKE_CURRENT_SOURCE_DIR}/external/nuttx-apps
     BUILD_COMMAND
       ${CMAKE_COMMAND} --build "${CMAKE_CURRENT_BINARY_DIR}/nuttx_build" -j
       ${CMAKE_HOST_SYSTEM_PROCESSOR_COUNT}
     INSTALL_COMMAND
       ${CMAKE_COMMAND} -E copy
       "${CMAKE_CURRENT_BINARY_DIR}/nuttx_build/nuttx"
       "${OUTPUT_DIR}/nuttx_engine_steering.elf"
       COMMAND
       ${CMAKE_COMMAND} -E copy
       "${CMAKE_CURRENT_BINARY_DIR}/nuttx_build/nuttx.bin"
       "${OUTPUT_DIR}/nuttx_engine_steering.bin"
     BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/nuttx_build"
   )
   ```
   
   I just tried compiling only nuttx inside the source directory with both 
cmake and tools/configure make and neither changed the outcome.
   I could not obtain host_info with cmake so I ran `./tools/configure.sh -l 
nucleo-h743zi:nsh && make host_info` to get it.
   
   
[hostinfo.txt](https://github.com/user-attachments/files/21125859/hostinfo.txt)
   
   
   I'm not sure what you mean by out of tree custom board, when I specify 
`-DBOARD_CONFIG=nucleo-h743zi:nsh` in cmake configure step doesn't it use the 
default board config included with nuttx? The only custom things I have are 
custom apps that I symlink into nuttx-apps/external.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to