build: drop redundant .sparse.img generation and update docs
This commit is contained in:
+3
-7
@@ -244,11 +244,10 @@ EOF
|
||||
rm -rf "$ROOTFS/boot"
|
||||
mv "$SAVED_BOOT" "$ROOTFS/boot"
|
||||
|
||||
echo "[4/5] Assembling partitioned MBR raw image and Android sparse image..."
|
||||
echo "[4/5] Assembling partitioned MBR raw image..."
|
||||
RAW_IMG="/images/bananarchy-$TARGET_DEVICE.img"
|
||||
SPARSE_IMG="/images/bananarchy-$TARGET_DEVICE.sparse.img"
|
||||
TOTAL_MB=$(( 1 + BOOT_MB + ROOT_MB ))
|
||||
rm -f "$RAW_IMG" "$SPARSE_IMG"
|
||||
rm -f "$RAW_IMG" "/images/bananarchy-$TARGET_DEVICE.sparse.img" "/images/nokia-argon-sxmo.sparse.img"
|
||||
truncate -s "${TOTAL_MB}M" "$RAW_IMG"
|
||||
|
||||
BOOT_SECTORS=$(( BOOT_MB * 2048 ))
|
||||
@@ -266,11 +265,8 @@ 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"
|
||||
|
||||
img2simg "$RAW_IMG" "$SPARSE_IMG"
|
||||
|
||||
if [ "$TARGET_DEVICE" = "nokia-argon" ]; then
|
||||
ln -f "$RAW_IMG" "/images/nokia-argon-sxmo.img"
|
||||
ln -f "$SPARSE_IMG" "/images/nokia-argon-sxmo.sparse.img"
|
||||
fi
|
||||
|
||||
echo "[5/5] Restoring host user ownership on $ROOTFS for easy host editing..."
|
||||
@@ -278,5 +274,5 @@ SFEOF
|
||||
chmod -R u+rwX "$ROOTFS"
|
||||
|
||||
echo "Built Bananarchy images for $TARGET_DEVICE:"
|
||||
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG" "$SPARSE_IMG"
|
||||
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG"
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user