Hi all,
I would like to share a tool I have been developing and using that may be 
useful for NuttX developers and for NuttX CI: ntxbuild.
Project link:
https://github.com/fdcavalcanti/ntxbuild
Also available in PyPi:
https://pypi.org/project/ntxbuild/
Documentation:
https://ntxbuild.readthedocs.io/en/latest/

ntxbuild is a Python-based helper around the NuttX build flow. It does not 
replace the existing build system; instead, it provides a command-line 
interface and a Python API on top of the usual tools such as configure.sh, 
make, menuconfig, and Kconfig utilities.
One of the main motivations for this tool is CI and automation. Because 
ntxbuild exposes a Python API, build flows can be scripted directly in Python 
instead of relying only on shell scripts. This makes it easier to integrate 
NuttX builds into Python-based test frameworks and CI pipelines.
I have been using ntxbuild in Espressif’s NuttX CI environments for a few 
weeks, where it has helped standardize and simplify automated build setup for 
our boards.
Beyond doing the basics (build, menuconfig, Kconfig changes..) I have a few 
features to add in the future. One that is working right is the toolchain 
installer (limited for some toolchains).
You simply call the toolchain setup on CLI and it downloads and install on the 
user directory. There are examples on the documentation page.
The project is new, open and still evolving. Feedback, suggestions, and 
contributions are very welcome. If there is interest, I can also provide more 
details about how it is being used in CI.
Best regards,
Filipe Cavalcanti

Reply via email to