How ni/nilrt works
NI Linux Real-Time is an OpenEmbedded-based project for building packages, feeds, kernels, system images, and installation media for NI embedded hardware. The primary workflow is a developer configuring the build environment and target, building packages and feeds, then building device images. The repository also includes CVE-reporting tools and an upstream-merge automation workflow. Several product capabilities are documented in the README but their implementation is outside the sampled source; those links cite the README, and uncertain implementation links are omitted.
Main entry points: openembedded-core OpenEmbedded · ni-oe-init-build-env Build setup · meta-nilrt Packages · git_repo.py Git repository API
Components 21
Build environment
- Build setup
ni-oe-init-build-env - Build container
docker - Pyrex shim
sources/pyrex - OpenEmbedded
sources/openembedded-core - Distribution layers
sources/meta-nilrt
Distribution outputs
- Packages
sources/meta-nilrt - Package feeds
scripts/pipelines - RT kernel
sources/meta-nilrt - System images
sources/meta-nilrt - Recovery media
sources/meta-nilrt
CVE reporting
- CVE stanza parser
scripts/pipelines/cve-to-csv.py - High-severity filter
scripts/pipelines/high-sev-cve-to-json.py - CVE CSV diff
scripts/dev/diff-cve-csvs.py
Upstream automation
- Merge workflow
scripts/dev/upstream_merge/upstream_merge.py - Git repository API
scripts/dev/upstream_merge/utils/git_repo.py - Git commands
scripts/dev/upstream_merge/utils/git_commands.py - Shell execution
scripts/dev/upstream_merge/utils/shell_commands.py - Build helpers
scripts/dev/upstream_merge/utils/build.py - Push and PR
scripts/dev/upstream_merge/utils/push_branch_and_create_pr.py - Merge reporting
scripts/dev/upstream_merge/log_and_email_utils.py
Other components
- Developer
Connections 20
- Developer → Build setup: configures
README.md - Build setup → Pyrex shim: sets up shim
README.md - Build setup → OpenEmbedded: initializes environment
README.md - Developer → Build container: prepares build
README.md - OpenEmbedded → Packages: builds
README.md - Distribution layers → Packages: defines
- Packages → Package feeds: assembles
README.md - Package feeds → System images: prerequisite
README.md - OpenEmbedded → RT kernel: builds
README.md - OpenEmbedded → System images: builds
README.md - OpenEmbedded → Recovery media: builds
README.md - Developer → CVE stanza parser: runs
scripts/pipelines/cve-to-csv.py - Developer → High-severity filter: runs
scripts/pipelines/high-sev-cve-to-json.py - Developer → CVE CSV diff: compares reports
scripts/dev/diff-cve-csvs.py - Merge workflow → Git repository API: uses repository object
- Git repository API → Git commands: delegates Git operations
scripts/dev/upstream_merge/utils/git_repo.py - Git commands → Shell execution: runs commands
scripts/dev/upstream_merge/utils/git_commands.py - Build helpers → Shell execution: streams commands
scripts/dev/upstream_merge/utils/build.py - Push and PR → Git repository API: pushes and creates PR
scripts/dev/upstream_merge/utils/push_branch_and_create_pr.py - Merge reporting → Git commands: sends email
scripts/dev/upstream_merge/log_and_email_utils.py