dre: Re-setup ELF checks
Change-Id: I89154af89a7be70fa3702ac3a74adf8bd087b6ef
This commit is contained in:
parent
6266fbca9d
commit
eab870359c
2 changed files with 51 additions and 7 deletions
|
|
@ -8,11 +8,52 @@ from extract_utils.fixups_blob import (
|
|||
blob_fixup,
|
||||
blob_fixups_user_type,
|
||||
)
|
||||
from extract_utils.fixups_lib import (
|
||||
lib_fixup_remove,
|
||||
lib_fixup_remove_arch_suffix,
|
||||
lib_fixup_vendorcompat,
|
||||
lib_fixups_user_type,
|
||||
libs_clang_rt_ubsan,
|
||||
libs_proto_3_9_1,
|
||||
)
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
)
|
||||
|
||||
|
||||
namespace_imports = [
|
||||
'device/oneplus/dre',
|
||||
'hardware/oplus',
|
||||
'hardware/qcom-caf/sm8350',
|
||||
'hardware/qcom-caf/wlan',
|
||||
'vendor/qcom/opensource/commonsys-intf/display',
|
||||
'vendor/qcom/opensource/commonsys/display',
|
||||
'vendor/qcom/opensource/dataservices',
|
||||
'vendor/qcom/opensource/display',
|
||||
]
|
||||
|
||||
|
||||
def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
|
||||
return f'{lib}_vendor' if partition in ['odm', 'vendor'] else None
|
||||
|
||||
|
||||
lib_fixups: lib_fixups_user_type = {
|
||||
libs_clang_rt_ubsan: lib_fixup_remove_arch_suffix,
|
||||
libs_proto_3_9_1: lib_fixup_vendorcompat,
|
||||
(
|
||||
'com.qualcomm.qti.dpm.api@1.0',
|
||||
'libmmosal',
|
||||
'vendor.qti.diaghal@1.0',
|
||||
'vendor.qti.hardware.wifidisplaysession@1.0',
|
||||
'vendor.qti.imsrtpservice@3.0',
|
||||
): lib_fixup_vendor_suffix,
|
||||
(
|
||||
'libOmxCore',
|
||||
'libwpa_client',
|
||||
): lib_fixup_remove,
|
||||
}
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'odm/etc/init/android.hardware.drm@1.3-service.widevine.rc': blob_fixup()
|
||||
.regex_replace('writepid /dev/cpuset/foreground/tasks', 'task_profiles ProcessCapacityHigh'),
|
||||
|
|
@ -49,6 +90,9 @@ module = ExtractUtilsModule(
|
|||
'dre',
|
||||
'oneplus',
|
||||
blob_fixups=blob_fixups,
|
||||
lib_fixups=lib_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
check_elf=True,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue