spes: Sync extract scripts with 22 templates

Change-Id: I7963ae050cfb193c5d0c2636da9c1e8f82bcdbdb
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
Signed-off-by: tanvirr007 <tanvir.mymnsngh@gmail.com>
This commit is contained in:
Michael Bestas
2024-09-10 02:07:58 +03:00
committed by tanvirr007
parent 440c6d9836
commit 3d1ccc455c
2 changed files with 8 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ VENDOR=xiaomi
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}"/../../..
ANDROID_ROOT="${MY_DIR}/../../.."
export TARGET_ENABLE_CHECKELF=false
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
@@ -52,9 +54,11 @@ fi
function blob_fixup() {
case "${1}" in
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "13 0A 00 94" -P "1F 20 03 D5" -f "${2}"
;;
vendor/lib64/camera/components/com.qti.node.mialgocontrol.so)
[ "$2" = "" ] && return 0
llvm-strip --strip-debug "${2}"
"${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;

View File

@@ -17,6 +17,8 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
export TARGET_ENABLE_CHECKELF=false
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
@@ -31,7 +33,7 @@ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false
write_headers "${DEVICE}"
# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true
write_makefiles "${MY_DIR}/proprietary-files.txt"
# Finish
write_footers