mirror of
https://github.com/LineageOS/android_device_xiaomi_grus.git
synced 2025-02-05 07:26:42 +00:00
e67b2d58c8
Change-Id: I10a2bc3472ff3294823a4565f80b558c6c14d9ec
46 lines
994 B
Python
Executable File
46 lines
994 B
Python
Executable File
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
|
|
#
|
|
# SPDX-FileCopyrightText: 2024 The LineageOS Project
|
|
# 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,
|
|
lib_fixups_user_type,
|
|
)
|
|
|
|
from extract_utils.main import (
|
|
ExtractUtils,
|
|
ExtractUtilsModule,
|
|
)
|
|
|
|
namespace_imports = [
|
|
'hardware/qcom/sdm845',
|
|
'hardware/xiaomi',
|
|
'vendor/xiaomi/sdm710-common',
|
|
]
|
|
|
|
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,
|
|
}
|
|
|
|
module = ExtractUtilsModule(
|
|
'grus',
|
|
'xiaomi',
|
|
lib_fixups=lib_fixups,
|
|
namespace_imports=namespace_imports,
|
|
)
|
|
|
|
if __name__ == '__main__':
|
|
utils = ExtractUtils.device_with_common(module, 'sdm710-common', module.vendor)
|
|
utils.run()
|