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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user