MiuiCamera: Import 32bit misys prebuilts & append _system suffix

- Import all missing 32bit prebuilts which are required by sybsystem libs
- Append _system to conflicting system libs

Inspired from sm8250-common: Append _vendor to conflicting vendor libs [a2d1f54ae9]

Co-authored-by: Sebastiano Barezzi <seba@sebaubuntu.dev>
This commit is contained in:
johnmart19
2024-10-08 01:47:38 +03:00
parent c203475214
commit adab7e9510
19 changed files with 304 additions and 202 deletions

View File

@@ -42,6 +42,29 @@ function vendor_imports() {
EOF
}
function lib_to_package_fixup_system_variants() {
if [ "$2" != "system" ]; then
return 1
fi
case "$1" in
libmisys_jni.xiaomi | \
vendor.xiaomi.hardware.misys@1.0 | \
vendor.xiaomi.hardware.misys@2.0 | \
vendor.xiaomi.hardware.misys@3.0 | \
vendor.xiaomi.hardware.misys@4.0)
echo "${1}_system"
;;
*)
return 1
;;
esac
}
function lib_to_package_fixup() {
lib_to_package_fixup_clang_rt_ubsan_standalone "$1" ||
lib_to_package_fixup_proto_3_9_1 "$1" ||
lib_to_package_fixup_system_variants "$@"
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true