From 61829d94a9ff110c36267437afa4502058817c54 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Thu, 5 Nov 2026 17:55:17 +0200 Subject: [PATCH] Restore the EDL Sahara client import flash-edl.py called qualcomm_sahara(cdc) without importing the class after the vendored EDL library refactor, so flash-edl.sh failed with "NameError: name 'qualcomm_sahara' is not defined" when Sahara startup was reached. - Restore "from Library.sahara import qualcomm_sahara" alongside the other EDL client imports. - Add a scripts/check-rebuild.sh guard that rejects a missing Sahara import. - Verify Sahara startup with a hardware-free harness for the local edl/ checkout, BANANARCHY_EDL_DIR=vendor/edl, and a clean-clone vendor/edl fallback; scripts/check-rebuild.sh passes. --- flash-edl.py | 1 + scripts/check-rebuild.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/flash-edl.py b/flash-edl.py index ff1a83b..e7e319f 100755 --- a/flash-edl.py +++ b/flash-edl.py @@ -27,6 +27,7 @@ sys.path.insert(0, EDL_DIR) from Library.usb import usb_class from Library.gpt import gpt +from Library.sahara import qualcomm_sahara from Library.firehose import qualcomm_firehose, xmlparser diff --git a/scripts/check-rebuild.sh b/scripts/check-rebuild.sh index 9ddf537..c345233 100755 --- a/scripts/check-rebuild.sh +++ b/scripts/check-rebuild.sh @@ -127,6 +127,9 @@ done if [ ! -f "$BASE_DIR/vendor/edl/LICENSE" ]; then fail "missing vendor/edl/LICENSE" fi +if ! grep -q '^from Library\.sahara import qualcomm_sahara$' "$BASE_DIR/flash-edl.py"; then + fail "flash-edl.py is missing the Sahara client import" +fi echo "[check] Plugin artifacts..." for source in "$BASE_DIR"/src/dwm-plugins/*_plugin.cpp; do