Check Cross-Compiler Toolchain
Write a preflight script that verifies the cross toolchain is present and at the required minimum version before a build starts, so failures are clear rather than cryptic.
Constraints
- Check for arm-none-eabi-gcc, arm-none-eabi-objcopy and make.
- Require gcc version 10.0 or newer.
- Report every missing tool, not just the first.
- Exit 1 if anything is missing or too old.
- Print a clear pass line when all checks succeed.
- POSIX sh.
1#!/bin/sh2# TODO: preflight toolchain checks