NuttX Build System Assistant
Project description
ntxbuild
NuttX Build System Assistant - A Python tool for managing and building NuttX RTOS projects with ease.
ntxbuild is a wrapper around the many tools available in the NuttX repository. It wraps around utilities such as make, kconfig-tweak, menuconfig and most used bash scripts (such as configure.sh).
Also, it provides different features, such as downloading required toolchains and managing PATH.
This tool provides a command line interface that supports NuttX configuration and building, while also providing a Python API that allows you to script your builds.
Features
- Environment Management: Automatic NuttX workspace detection and configuration
- Python API: ntxbuild is available as a Python package for building NuttX using Python scripts
- Real-time Output: Live build progress with proper ANSI escape sequence handling
- Configuration Management: Kconfig integration for easy system configuration
- Interactive Tools: Support for curses-based tools like menuconfig
- Toolchin Support: Download and use your required toolchain automatically through the CLI
Documentation
Complete documentation, including usage examples and API reference, see: https://ntxbuild.readthedocs.io
Requirements
- Python 3.10+
- NuttX source code and applications
- Make and standard build tools required by NuttX RTOS
- CMake supported but optional
Quick Start
Build using CLI
Navigate to your NuttX workspace and download latest NuttX and NuttX Apps using ntxbuild.
$ mkdir ~/nuttxspace
$ cd ~/nuttxspace
$ ntxbuild download
Build the simulator using the nsh defconfig.
$ ntxbuild start sim nsh
$ ntxbuild build --parallel 8
Build using Python script
Alternatively, you can automate your builds using a Python script instead of the CLI.
from pathlib import Path
from ntxbuild.build import MakeBuilder
current_dir = Path.cwd()
# Use the Makefile-based builder
builder = MakeBuilder(current_dir, "nuttx", "nuttx-apps")
# Initialize the board/defconfig
setup_result = builder.initialize("sim", "nsh")
# Execute the build with 10 parallel jobs
builder.build(parallel=10)
# You can now clean the environment if needed
builder.distclean()
Installing toolchains
Support for installing some of the most common toolchains is available.
$ ntxbuild toolchain install gcc-arm-none-eabi
Installing toolchain gcc-arm-none-eabi for NuttX v12.12.0
✅ Toolchain gcc-arm-none-eabi installed successfully
Installation directory: /home/user/ntxenv/toolchains
Note: Toolchains are sourced automatically during build.
Installation
Using pip
As an user, you can install this tool using pip:
pip install ntxbuild
From Source
If you are a developer or simply wants to install from source, you can clone
this repository and install using pip install -e <repo>
git clone <repository-url>
cd ntxbuild
pip install -e .
Use the dev configuration to install development tools and docs to install
documentation tools.
pip install -e ".[dev]"
pip install -e ".[docs]"
Contributing
Contributions are always welcome but will be subject to review and approval. Basic rules:
- Testing and documentation are mandatory for new features
- Depedencies should be kept to a minimal
- Code linting using pre-commit is mandatory
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ntxbuild-0.5.0.tar.gz.
File metadata
- Download URL: ntxbuild-0.5.0.tar.gz
- Upload date:
- Size: 54.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
709f13fa7aa571273e7319cd0bda9ba4a2d2aec617994c8517d3480adc433269
|
|
| MD5 |
a8e91feb9c823a59f8e6d17d58a66579
|
|
| BLAKE2b-256 |
b22117802cb2781202e3572b60a46f80570e0ae198cb1b66ece0bf3dc6b86cdd
|
Provenance
The following attestation bundles were made for ntxbuild-0.5.0.tar.gz:
Publisher:
publish-pypi.yml on fdcavalcanti/ntxbuild
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ntxbuild-0.5.0.tar.gz -
Subject digest:
709f13fa7aa571273e7319cd0bda9ba4a2d2aec617994c8517d3480adc433269 - Sigstore transparency entry: 919773522
- Sigstore integration time:
-
Permalink:
fdcavalcanti/ntxbuild@42819fe99254c2107dfd0fa46a13d39a726f80a5 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/fdcavalcanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@42819fe99254c2107dfd0fa46a13d39a726f80a5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ntxbuild-0.5.0-py3-none-any.whl.
File metadata
- Download URL: ntxbuild-0.5.0-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c87021d8fc8da6ade63a5752dd4ed024418341e86e88d3a1b4289bb4f9fe10b
|
|
| MD5 |
432ba2772b724514c53dd05a03cb4b5b
|
|
| BLAKE2b-256 |
d751eee94b501b5619baeb80071f0abbde6cda902e51f53852130a4ec7b219a9
|
Provenance
The following attestation bundles were made for ntxbuild-0.5.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on fdcavalcanti/ntxbuild
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ntxbuild-0.5.0-py3-none-any.whl -
Subject digest:
3c87021d8fc8da6ade63a5752dd4ed024418341e86e88d3a1b4289bb4f9fe10b - Sigstore transparency entry: 919773534
- Sigstore integration time:
-
Permalink:
fdcavalcanti/ntxbuild@42819fe99254c2107dfd0fa46a13d39a726f80a5 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/fdcavalcanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@42819fe99254c2107dfd0fa46a13d39a726f80a5 -
Trigger Event:
release
-
Statement type: