firmware: debug/test build profiles with real behavioural differences
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build a named firmware profile.
|
||||
# ./tools/build.sh test (default) - configuration all HIL numbers use
|
||||
# ./tools/build.sh debug - verbose, assertions, per-TX dumps
|
||||
# Build dirs are kept separate so switching profiles cannot silently reuse
|
||||
# a stale sdkconfig.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/../firmware"
|
||||
PROFILE=${1:-test}
|
||||
case "$PROFILE" in
|
||||
test|debug) ;;
|
||||
*) echo "unknown profile: $PROFILE (use test|debug)" >&2; exit 2 ;;
|
||||
esac
|
||||
export SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.$PROFILE"
|
||||
exec idf.py -B "build-$PROFILE" -D SDKCONFIG="sdkconfig.$PROFILE" "${@:2}" build
|
||||
Reference in New Issue
Block a user