build: remove size check already in mkbootimg.mk

This commit is contained in:
2026-09-14 11:16:12 +02:00
parent 39930e9e6e
commit c22693d9da
-7
View File
@@ -7,7 +7,6 @@ readonly BUILD="$ROOT/build-twrp"
readonly MANIFEST_URL="https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git"
readonly MANIFEST_BRANCH="twrp-5.1"
readonly RECOVERY_BUDGET=10485248
rlte_print() { printf '\033[34m[%s] %s\033[0m\n' "$0" "$*" ; }
rlte_error() { printf '\033[31m[%s] error: %s\033[0m\n' "$0" "$*" >&2 ; exit 1; }
@@ -67,12 +66,6 @@ do_build() {
fi
cp out/target/product/rubenslte/recovery.img "$ROOT/recovery.img"
if [ "$(stat -c%s "$ROOT/recovery.img")" -gt "$RECOVERY_BUDGET" ]; then
rlte_error "$ROOT/recovery.img exceeds the recovery partition budget"
exit 1
fi
rlte_ok "Image at: $ROOT/recovery.img"
}