aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Bourgoin <themard85@gmail.com>2021-02-10 22:38:58 -0700
committerDavide Garberi <dade.garberi@gmail.com>2021-10-11 17:07:48 +0200
commit985b95d82172bc2b363ee3beec97669a2eba2a8b (patch)
tree37411edc4fab78287ba21c490701b14b0bda4db7
parentb07706602008134069db5f76b6614e50428a286d (diff)
sdm660-common: Add a check before adding dependencies
Without a check, when performing a vendor blob regen it'll add another dependency on top of any existing one Change-Id: I9c7f17082fd850235c794d44cec3cda0c4b883ef
-rwxr-xr-xextract-files.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 930ad0b..a140fa6 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -74,7 +74,9 @@ function blob_fixup() {
sed -i 's|/product/framework/qcrilhook.jar|/system_ext/framework/qcrilhook.jar|g' "${2}"
;;
system_ext/lib64/libdpmframework.so)
- "${PATCHELF}" --add-needed "libshim_dpmframework.so" "${2}"
+ for LIBSHIM_DPMFRAMEWORK in $(grep -L "libshim_dpmframework.so" "${2}"); do
+ "${PATCHELF}" --add-needed "libshim_dpmframework.so" "$LIBSHIM_DPMFRAMEWORK"
+ done
;;
vendor/bin/mlipayd@1.1)
"${PATCHELF}" --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "${2}"