akari: Switch to py extract utils

Change-Id: I385df1ce3d67b291c7b6a543cb6581d2fc60b443
This commit is contained in:
LuK1337 2024-10-15 22:12:50 +02:00 • committed by Danny Trunk
commit f28989e169
4 changed files with 27 additions and 36 deletions

26
extract-files.py Executable file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'vendor/sony/tama-common',
]
module = ExtractUtilsModule(
'akari',
'sony',
namespace_imports=namespace_imports,
)
if __name__ == '__main__':
utils = ExtractUtils.device_with_common(
module, 'tama-common', module.vendor
)
utils.run()

View file

@ -1,21 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 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=akari
export DEVICE_COMMON=tama-common
export VENDOR=sony
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

1
setup-makefiles.py Executable file
View file

@ -0,0 +1 @@
#!./extract-files.py --regenerate_makefiles

View file

@ -1,15 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
export DEVICE=akari
export DEVICE_COMMON=tama-common
export VENDOR=sony
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"