firmware: debug/test build profiles with real behavioural differences
This commit is contained in:
+7
-3
@@ -64,12 +64,16 @@ grep -q "SDR_HEALTH=ok" "$RUN_DIR/sdr_health.txt" || {
|
||||
|
||||
# --- 4-6. build + flash + reset --------------------------------------------
|
||||
if [ "$FLASH" = 1 ]; then
|
||||
(cd firmware && idf.py build) > "$RUN_DIR/build.log" 2>&1
|
||||
if ! (cd firmware && idf.py -p "$DUT_PORT" flash) >> "$RUN_DIR/build.log" 2>&1; then
|
||||
# always the "test" profile: the configuration every reported number
|
||||
# is measured with (see firmware/sdkconfig.defaults.test)
|
||||
./tools/build.sh test > "$RUN_DIR/build.log" 2>&1
|
||||
if ! (cd firmware && idf.py -B build-test -p "$DUT_PORT" flash) \
|
||||
>> "$RUN_DIR/build.log" 2>&1; then
|
||||
# the port re-enumerates when entering download mode; rediscover once
|
||||
sleep 2
|
||||
eval "$(./tools/discover_devices.sh)"
|
||||
(cd firmware && idf.py -p "$DUT_PORT" flash) >> "$RUN_DIR/build.log" 2>&1
|
||||
(cd firmware && idf.py -B build-test -p "$DUT_PORT" flash) \
|
||||
>> "$RUN_DIR/build.log" 2>&1
|
||||
fi
|
||||
sleep 2
|
||||
eval "$(./tools/discover_devices.sh)"
|
||||
|
||||
Reference in New Issue
Block a user