1
0

android: 16kb alignment updates

p4a ref: electrum_20240930_android_16kb_page_alignment
Dockerfile: obtain 16kb aligned NDK r23 from google CI (dl-ndk-ci.sh)
barcode, zxing-cpp: add 16kb align patch
build_tools_util.sh: add function to apply a patch
This commit is contained in:
Sander van Grieken
2025-08-19 13:10:09 +02:00
parent 74d2c6386a
commit 87d82f38c5
5 changed files with 67 additions and 13 deletions

View File

@@ -72,6 +72,24 @@ clone_or_update_repo() {
fi
}
apply_patch() {
local patch=$1
local path=$2
if [ -z "$patch" ] || [ -z "$path" ]; then
fail "apply_patch: invalid arguments: patch='$patch', path='$path'"
fi
if [ -d "$path" ]; then
info "Patching: $patch"
cd "$path"
patch -p1 <"$patch"
cd -
else
fail "apply_patch: path='$path' not found"
fi
}
# https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/templates/header.sh
function retry() {
local result=0