s5neolte: 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 08:32:59 +0000 (09:32 +0100)
Change-Id: If1a7328804fb9bc39ccec70690f1090f2d0509b3

extract-files.sh

index c35217318e1958e370c9938034ba48a6eb365d5a..8fe89ca252619f426665ca43d2d92095f7e857e8 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)