j7elte: Switch to patchelf from tools-lineage
authorMichael Bestas <mkbestas@lineageos.org>
Thu, 5 Nov 2020 17:50:53 +0000 (19:50 +0200)
committerDario Trombello <dariotr@outlook.de>
Fri, 15 Jan 2021 14:50:40 +0000 (15:50 +0100)
Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

extract-files.sh

index 0d69138a753442a03051fd25bf74898517974f87..aa342559cc6873ad8e1cd30e3a661ac13088aaf2 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\/etc\/plmn_delta.bin/\/vendor\/etc\/plmn_delta.bin/g" $BLOB_ROOT/lib/libsec-ril.so)
 (perl -pi -e "s/\/system\/etc\/plmn_delta.bin/\/vendor\/etc\/plmn_delta.bin/g" $BLOB_ROOT/lib/libsec-ril-dsds.so)
 (perl -pi -e "s/\/system\/etc\/plmn_se13.bin/\/vendor\/etc\/plmn_se13.bin/g" $BLOB_ROOT/lib/libsec-ril.so)