sm8250-common: Prevent adding same dependency twice in blob_fixup

Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
This commit is contained in:
LuK1337
2022-10-15 23:05:18 +02:00
committed by Łukasz Patron
parent 82fe945b20
commit 0f9d1c4d6a

View File

@@ -61,7 +61,7 @@ fi
function blob_fixup() {
case "${1}" in
odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service)
"${PATCHELF}" --add-needed libshims_fingerprint.oplus.so "${2}"
grep -q libshims_fingerprint.oplus.so "${2}" || "${PATCHELF}" --add-needed libshims_fingerprint.oplus.so "${2}"
;;
odm/etc/init/wlchgmonitor.rc)
sed -i "/disabled/d;/seclabel/d" "${2}"