sm8250-common: Switch to blob_fixup()

Change-Id: Ic828da86cfe44a660c1e48a603ba48d584dfc755
This commit is contained in:
LuK1337 2019-09-27 11:58:42 +02:00
parent f9501c93a7
commit d996e39f61

View file

@ -30,6 +30,14 @@ if [ ! -f "${HELPER}" ]; then
fi fi
source "${HELPER}" source "${HELPER}"
function blob_fixup() {
case "${1}" in
lib64/libwfdnative.so)
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
;;
esac
}
# Default to sanitizing the vendor folder before extraction # Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true CLEAN_VENDOR=true
@ -76,6 +84,4 @@ fi
COMMON_BLOB_ROOT="${LINEAGE_ROOT}/vendor/${VENDOR}/${DEVICE_COMMON}/proprietary" COMMON_BLOB_ROOT="${LINEAGE_ROOT}/vendor/${VENDOR}/${DEVICE_COMMON}/proprietary"
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${COMMON_BLOB_ROOT}/lib64/libwfdnative.so"
"${MY_DIR}/setup-makefiles.sh" "${MY_DIR}/setup-makefiles.sh"