Finalize verified 2720 Flip release source and untrack image outputs

This commit is contained in:
Luxferre committed 2026-11-09 23:04:13 +02:00
1 parent 2a3078e42c
commit 1c011b360a
121 files changed
+8467 -686

No files matched your search

+18 -2
View File
@@ -92,11 +92,21 @@ ensure_prebuilt_artifacts() {
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/xt_owner.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/netfilter/nft_redir.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/leds/leds-msm8905-torch.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/camera/msm8905-cam.ko.zst" ]; then
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/camera/msm8905-cam.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/mux/mux-core.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/mux/mux-gpio.ko.zst" ] || \
[ ! -f "$BANANARCHY_DIR/prebuilt/kernel-6.12.1-msm8916/spi/spi-mux.ko.zst" ]; then
echo "[auto-deps] Missing prebuilt kernel modules or DTBs; running scripts/build-kernel-audio.sh..."
"$BANANARCHY_DIR/scripts/build-kernel-audio.sh"
fi
if [ ! -x "$BANANARCHY_DIR/prebuilt/bananarchy-daemons/usr/bin/bananarchy-lid" ] || \
[ ! -x "$BANANARCHY_DIR/prebuilt/bananarchy-daemons/usr/bin/bananarchy-cover-idle" ] || \
[ ! -x "$BANANARCHY_DIR/prebuilt/bananarchy-daemons/usr/bin/bananarchy-volume-keys" ]; then
echo "[auto-deps] Missing compiled idle daemons; running scripts/build-bananarchy-daemons.sh..."
"$BANANARCHY_DIR/scripts/build-bananarchy-daemons.sh"
fi
if [ ! -f "$BANANARCHY_DIR/prebuilt/bantam/bantam" ]; then
echo "[auto-deps] Missing prebuilt bantam binary; running scripts/build-bantam.sh..."
"$BANANARCHY_DIR/scripts/build-bantam.sh"
@@ -392,6 +402,8 @@ EOF
echo "[3/5] Creating ext2 boot (256 MiB) and ext4 root filesystems..."
strip_build_residue
mkdir -p "$ROOTFS/sbin"
ln -sfn /bin/busybox "$ROOTFS/sbin/init"
APK_CACHE_LEFT="$(ls -A "$ROOTFS/var/cache/apk" 2>/dev/null || true)"
APK_LOGS_LEFT="$(ls "$ROOTFS/var/log"/apk.log* 2>/dev/null || true)"
if [ -n "$APK_CACHE_LEFT" ] || [ -n "$APK_LOGS_LEFT" ]; then
@@ -429,7 +441,6 @@ EOF
"/images/bananarchy-$TARGET_DEVICE.sparse.img" \
"/images/nokia-argon-sxmo.sparse.img" \
"/images/nokia-argon-sxmo.img" \
"/images/boot-bananarchy-$TARGET_DEVICE.img" \
"/images/boot-nokia-argon-sxmo.img"
truncate -s "${TOTAL_MB}M" "$RAW_IMG"
@@ -448,6 +459,11 @@ SFEOF
dd if="$ROOT_IMG" of="$RAW_IMG" bs=1M seek=$(( 1 + BOOT_MB )) conv=notrunc,sparse status=none
rm -f "$BOOT_IMG" "$ROOT_IMG"
# Export the Android boot image separately. The 2720 Flip needs it in the
# 'recovery' partition (Volume Up boot) instead of lk2nd in 'boot'.
cp -a "$ROOTFS/boot/boot.img" "/images/boot-bananarchy-$TARGET_DEVICE.img"
echo "[+] Exported standalone boot image: /images/boot-bananarchy-$TARGET_DEVICE.img"
echo "[5/5] Restoring host user ownership on $ROOTFS for easy host editing..."
chown -R "$HOST_UID:$HOST_GID" "$ROOTFS" "/images"
chmod -R u+rwX "$ROOTFS"