cmi: extract-files: Prevent adding duplicated dependencies

Change-Id: I186c38583670d509d4e0a0c89bc682706036f1ea
This commit is contained in:
LuK1337
2023-11-14 20:17:10 +01:00
committed by Sebastiano Barezzi
parent 70be9c3280
commit 4b6f854353

View File

@@ -17,7 +17,7 @@ function blob_fixup() {
;;
vendor/lib64/camera/components/com.mi.node.watermark.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so)
[ "$2" = "" ] && return 0