Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for QNX BuildGuard
Inspiration
Developers migrating from QNX 7.x to QNX SDP 8.0 or authoring new QEMU system images frequently hit silent buildfile and toolchain breaks (deprecated slogger instead of slogger2, 32-bit armv7 compiler flags instead of 64-bit gcc_ntox86_64 / gcc_ntoaarch64le, missing LD_LIBRARY_PATH, or unsafe perms=4777 setuid binaries).
What It Does
QNX BuildGuard is a host-based static auditor and QEMU readiness workbench for QNX SDP 8.0 (Windows, macOS, and Linux hosts):
audit-buildfile: Validatesmkifs.buildfiles ([+script],procnto-smp-instr,slogger2,LD_LIBRARY_PATH,perms=4777,+raw).audit-qcc: Checksqcc/q++target variants (-Vgcc_ntox86_64,-Vgcc_ntoaarch64le) and flags deprecated 32-bit targets.gen-qemu: Generates ready-to-build QNX SDP 8.0 QEMUx86_64andaarch64le.buildfiles andqemu-system-*launch commands.- Interactive Web Auditor & Step-by-Step Codelab: https://devbox-zero-ops.github.io/qnx-buildguard/codelab.html
QNX Environment & Reproduction
- QNX Version: QNX SDP 8.0
- Targets: QEMU (
x86_64&aarch64le) + Host CLI (Windows/macOS/Linux) - Toolchain:
qcc,mkifs, Node.js 22+, TypeScriptbash npm install && npm run build && npm test npm run cli -- audit-buildfile examples/qnx8-qemu-x86_64.build npm run cli -- audit-qcc "qcc -Vgcc_ntox86_64 -O2 -o sensor_node main.c"
Built With
- node.js
- qemu
- qnx
- typescript