mirror of
https://github.com/LineageOS/android_device_xiaomi_whyred.git
synced 2025-10-06 03:50:00 +02:00
whyred: 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
This commit is contained in:
parent
313432fcfe
commit
bbb1314995
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@
|
||||||
function blob_fixup() {
|
function blob_fixup() {
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
vendor/lib/hw/camera.sdm660.so)
|
vendor/lib/hw/camera.sdm660.so)
|
||||||
"${PATCHELF}" --add-needed "libcamera_sdm660_shim.so" "${2}"
|
for LIBCAMERA_SDM660_SHIM in $(grep -L "libcamera_sdm660_shim.so" "${2}"); do
|
||||||
|
"${PATCHELF}" --add-needed "libcamera_sdm660_shim.so" "$LIBCAMERA_SDM660_SHIM"
|
||||||
|
done
|
||||||
;;
|
;;
|
||||||
vendor/lib64/libgf_ca.so)
|
vendor/lib64/libgf_ca.so)
|
||||||
sed -i 's|/system/etc/firmware|/vendor/firmware\x0\x0\x0\x0|g' "${2}"
|
sed -i 's|/system/etc/firmware|/vendor/firmware\x0\x0\x0\x0|g' "${2}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue