kane: Switch to patchelf from tools-lineage
authorMichael Bestas <mkbestas@lineageos.org>
Thu, 5 Nov 2020 17:50:53 +0000 (19:50 +0200)
committerJan Altensen <info@stricted.net>
Sun, 3 Jan 2021 06:50:46 +0000 (07:50 +0100)
Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

extract-files.sh

index 3457fe5f1f43a1a50bc7e9ed96185a7b8dd0aaa1..9619d3f9a7018c9d983caed5a92e6ab47d3f619a 100755 (executable)
@@ -62,11 +62,11 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTIO
 BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary
 
 # Remove libhidltransport dependency
-patchelf --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib/libril_sitril.so
-patchelf --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib64/libril_sitril.so
+"${PATCHELF}" --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib/libril_sitril.so
+"${PATCHELF}" --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib64/libril_sitril.so
 
 # Remove libhwbinder dependency
-patchelf --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib/libril_sitril.so
-patchelf --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib64/libril_sitril.so
+"${PATCHELF}" --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib/libril_sitril.so
+"${PATCHELF}" --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib64/libril_sitril.so
 
 "${MY_DIR}/setup-makefiles.sh"