trns1997 commented on issue #12362:
URL: https://github.com/apache/nuttx/issues/12362#issuecomment-2125535226

   Hi @sastel. We more or less do the following:
   1. We fetch nuttx  and nuttx-app of set version
   2. We then configure our board (this can also be a out-of-tree board as 
well) using `configure.sh`
   3. Then we call `make export` to generate the archive
   4. And then we use the exported archive to build our applications. 
   5. Now once we have the archive we have the toolchain generated by the 
export in the scripts folder (not sure need to check)
   6. Then you need create a conan profile with the right settings, buildenv 
and most importantly you need to set the conf to inject the nuttx generated 
toolchain (details can be found here: 
https://docs.conan.io/2/reference/config_files/global_conf.html#reference-config-files-global-conf
 , i think it was either `tools.cmake.cmaketoolchain:toolchain_file: Use other 
existing file rather than conan_toolchain.cmake one
   ` or `tools.cmake.cmaketoolchain:user_toolchain: Inject existing user 
toolchains at the beginning of conan_toolchain.cmake
   ` @leducp can you confirm which one to use).
   7. From there you can conan install packages you need with your application.
   
   If you want i could create a minimal example for you and future users who 
wish to use conan as a package manager with nuttx. But to be clear we do not in 
any way use conan to build nuttx. 


-- 
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