From 08a9919d53fa1fb7ad3ced2c285b8fb46cff60bc Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 11 Sep 2024 00:04:13 +0300 Subject: [PATCH] sm6150-common: Shim widevine with libcrypto_shim The following change https://github.com/google/boringssl/commit/e202e51cb0912f36dafbd2e67cf04d6ec82f3180 removed symbols that our libs require. Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29 --- extract-files.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extract-files.py b/extract-files.py index dc4976c..9c409e8 100755 --- a/extract-files.py +++ b/extract-files.py @@ -4,6 +4,10 @@ # SPDX-License-Identifier: Apache-2.0 # +from extract_utils.fixups_blob import ( + blob_fixup, + blob_fixups_user_type, +) from extract_utils.fixups_lib import ( lib_fixup_remove, lib_fixups, @@ -41,9 +45,16 @@ lib_fixups: lib_fixups_user_type = { ): lib_fixup_remove, } + +blob_fixups: blob_fixups_user_type = { + ('vendor/lib64/mediadrm/libwvdrmengine.so', 'vendor/lib64/libwvhidl.so'): blob_fixup() + .add_needed('libcrypto_shim.so'), +} # fmt: skip + module = ExtractUtilsModule( 'sm6150-common', 'xiaomi', + blob_fixups=blob_fixups, lib_fixups=lib_fixups, namespace_imports=namespace_imports, )