Skip to main content

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 simply a wrapper around the many tools available in the NuttX repository. It wraps around tools such as make, kconfig-tweak, menuconfig and most used bash scripts (such as configure.sh).

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.

Python 3.8+ Linux

Features

  • Environment Management: Automatic NuttX workspace detection and configuration
  • Parallel Builds: Support for multi-threaded builds with isolated workspaces
  • Real-time Output: Live build progress with proper ANSI escape sequence handling
  • Configuration Management: Kconfig integration for easy system configuration
  • Build Cleanup: Automated artifact management and cleanup
  • Persistent Settings: Environment configuration saved in .ntxenv files
  • Interactive Tools: Support for curses-based tools like menuconfig

Requirements

  • Python 3.9+
  • NuttX source code and applications
  • Make and standard build tools required by NuttX RTOS

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

Quick Start

1. Initialize Your NuttX Environment

# Navigate to your NuttX workspace
cd /path/to/your/nuttx-workspace

# Initialize with board and defconfig
ntxbuild start sim nsh

2. Build Your Project

# Build with default settings
ntxbuild build

# Or, build with parallel jobs
ntxbuild build --parallel 8

3. Configure Your System

# Run menuconfig
ntxbuild menuconfig

# Set Kconfig values
ntxbuild kconfig --set-value CONFIG_DEBUG=y
ntxbuild kconfig --set-str CONFIG_APP_NAME="MyApp"

🏗️ Project Structure

your-nuttx-workspace/
├── nuttx/                   # NuttX kernel source
├── nuttx-apps/              # NuttX applications
├── .ntxenv                  # Environment configuration (auto-generated)

🔧 Environment Configuration

The .ntxenv file stores your workspace configuration:

  • NuttX directory name
  • Apps directory name
  • Workspace path

This allows ntxbuild to remember your setup between sessions.

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

ntxbuild-0.1.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ntxbuild-0.1.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file ntxbuild-0.1.1.tar.gz.

File metadata

  • Download URL: ntxbuild-0.1.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ntxbuild-0.1.1.tar.gz
Algorithm Hash digest
SHA256 88814c9483b55477df6a58502f2654aeb34125e12248a7dc7a87d6d9471af977
MD5 e5b48a91d730416fb042737d3e7bbd01
BLAKE2b-256 a8471bc234cb796432ecda58fe5ab0ff3dc7ef219dc23aae48c1023818806bbb

See more details on using hashes here.

File details

Details for the file ntxbuild-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ntxbuild-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ntxbuild-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8414315cda827ac5503ffcbb4a0cf0b1d9b0be0ce04011b81eb1423de52274
MD5 79346c81a9f5224b3a86ec9dedc0d614
BLAKE2b-256 bb5a9ceaaefc94aa77aa569d9c80dc4280d0f5bba1760f9028aee844c3cd1bcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page