a71: Switch to py extract utils
Change-Id: I8870e45e429fd651892f2da1bfc2452ba4fb545a
This commit is contained in:
37
extract-files.py
Executable file
37
extract-files.py
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/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_lib import (
|
||||
lib_fixup_vendorcompat,
|
||||
lib_fixups_user_type,
|
||||
libs_proto_3_9_1,
|
||||
)
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
)
|
||||
|
||||
namespace_imports = [
|
||||
'vendor/samsung/a71-common',
|
||||
]
|
||||
|
||||
lib_fixups: lib_fixups_user_type = {
|
||||
libs_proto_3_9_1: lib_fixup_vendorcompat,
|
||||
}
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'a71',
|
||||
'samsung',
|
||||
lib_fixups=lib_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
check_elf=True,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
utils = ExtractUtils.device_with_common(
|
||||
module, 'a71-common', module.vendor
|
||||
)
|
||||
utils.run()
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2024 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=a71
|
||||
export DEVICE_COMMON=a71-common
|
||||
export VENDOR=samsung
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
||||
1
setup-makefiles.py
Executable file
1
setup-makefiles.py
Executable file
@@ -0,0 +1 @@
|
||||
#!./extract-files.py --regenerate_makefiles
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2024 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=a71
|
||||
export DEVICE_COMMON=a71-common
|
||||
export VENDOR=samsung
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
||||
Reference in New Issue
Block a user