sm8650-common: Initial proprietary blobs list and bringup HALs
Co-authored-by: Bruno Martins <bgcngm@gmail.com> Co-authored-by: chaptsand <chaptsand@gmail.com> Co-authored-by: Simon1511 <simon2002.schoenmackers@gmail.com> Signed-off-by: David Wronek <david@mainlining.org> Change-Id: Icbcdd3f49a0723f2bb0b6b2265994cd2221074ff
This commit is contained in:
@@ -29,9 +29,45 @@ namespace_imports = [
|
||||
'vendor/qcom/opensource/dataservices',
|
||||
]
|
||||
|
||||
|
||||
def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
|
||||
return f'{lib}_{partition}' if partition == 'vendor' else None
|
||||
|
||||
|
||||
lib_fixups: lib_fixups_user_type = {
|
||||
**lib_fixups,
|
||||
(
|
||||
'vendor.qti.diaghal@1.0',
|
||||
): lib_fixup_vendor_suffix,
|
||||
(
|
||||
'libagmclient',
|
||||
'libar-acdb',
|
||||
'libar-gpr',
|
||||
'libar-gsl',
|
||||
'libats',
|
||||
'liblx-osal',
|
||||
'vendor.qti.hardware.AGMIPC@1.0-impl',
|
||||
): lib_fixup_remove,
|
||||
}
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'vendor/etc/init/android.hardware.security.keymint-service-qti.rc': blob_fixup()
|
||||
.regex_replace('android.hardware.security.keymint-service', 'android.hardware.security.keymint-service-qti'),
|
||||
'vendor/lib64/libsec-ril.so': blob_fixup()
|
||||
.binary_regex_replace(b'ril.dds.call.ongoing', b'vendor.calls.slot_id')
|
||||
# mov x3, x21 -> mov x3, #0
|
||||
.sig_replace('16 aa 82 0c 80 52 e3 03 15 aa 24 00 80 52 08', '16 aa 82 0c 80 52 03 00 80 d2 24 00 80 52 08'),
|
||||
'vendor/lib64/libskeymint_cli.so': blob_fixup()
|
||||
.replace_needed('libcrypto.so', 'libcrypto-v33.so'),
|
||||
('vendor/bin/hw/android.hardware.security.keymint-service-spu-qti', 'vendor/lib64/libspukeymint.so'): blob_fixup()
|
||||
.replace_needed('android.hardware.security.sharedsecret-V2-ndk.so', 'android.hardware.security.sharedsecret-V1-ndk.so'),
|
||||
}
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'sm8650-common',
|
||||
'samsung',
|
||||
blob_fixups=blob_fixups,
|
||||
lib_fixups=lib_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user