Files
bananarchy/scripts/bootstrap-flash-deps.sh
T
Luxferre 0ab9367e28 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.
2026-11-05 13:40:53 +02:00

25 lines
783 B
Bash
Executable File

#!/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."