a5xelte: Switch to patchelf from tools-lineage
authorMichael Bestas <mkbestas@lineageos.org>
Thu, 5 Nov 2020 17:50:53 +0000 (19:50 +0200)
committerDanny Wood <danwood76@gmail.com>
Sun, 3 Jan 2021 10:15:01 +0000 (10:15 +0000)
Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

extract-files.sh

index 601a7cb5353f79e3a0e8914c8f83fb19510d11eb..568eaad36e85a236546e9d6c5427df18355c6932 100755 (executable)
@@ -61,8 +61,8 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTIO
 
 # Fix proprietary blobs
 BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary
-patchelf --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril.so
-patchelf --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril-dsds.so
+"${PATCHELF}" --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril.so
+"${PATCHELF}" --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril-dsds.so
 (perl -pi -e "s/\/system\/bin\/gpsd/\/vendor\/bin\/gpsd/g" $BLOB_ROOT/lib/libsec-ril.so)
 (perl -pi -e "s/\/system\/bin\/gpsd/\/vendor\/bin\/gpsd/g" $BLOB_ROOT/lib/libsec-ril-dsds.so)