Make clean-clone OS rebuilds autonomous
A fresh clone can now bootstrap a complete armv7 rootfs, apply the Bananarchy overlay, regenerate boot artifacts, and produce a flashable image without local build artifacts. - Add a shared package list and Docker-based rootfs bootstrap, wired into rebuild-image.sh and chroot-shell.sh. - Add offline rebuild preflight checks and prebuilt-to-overlay artifact synchronization. - Vendor the patched EDL client and provision host flashing dependencies. - Remove the hardcoded credential from the power menu helper. - Refresh documentation and changelog for the autonomous workflow.
This commit is contained in:
1 parent
a9b72700ac
commit
0ab9367e28
31 files changed
+3809
-181
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
# Install the host Python dependencies needed by flash-edl.py into a
|
||||
# repository-local directory, so a clean clone can flash autonomously.
|
||||
set -eu
|
||||
|
||||
BASE_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
PYTHON_BIN="${PYTHON_BIN:-python3}"
|
||||
TARGET="$BASE_DIR/.flash-deps"
|
||||
|
||||
if "$PYTHON_BIN" -c 'import usb.core, serial' >/dev/null 2>&1; then
|
||||
echo "[flash-deps] pyusb and pyserial are already available."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! "$PYTHON_BIN" -m pip --version >/dev/null 2>&1; then
|
||||
echo "Error: python3 pip is required to install flashing dependencies." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[flash-deps] Installing pyusb and pyserial into $TARGET..."
|
||||
mkdir -p "$TARGET"
|
||||
"$PYTHON_BIN" -m pip install --disable-pip-version-check --no-input \
|
||||
--target "$TARGET" pyusb pyserial
|
||||
echo "[flash-deps] Done."
|
||||
Reference in new issue
Block a user