build: remove size check already in mkbootimg.mk
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user