alioth: Import Lineage's common extract_utils

Change-Id: Ibd03799669c925999b2baaef6f4411a168ec6063
This commit is contained in:
SahilSonar
2021-07-12 15:00:46 +02:00
parent 0cad158a60
commit 42cecb6941
2 changed files with 34 additions and 0 deletions

20
extract-files.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
#
# Copyright (C) 2021 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=alioth
export DEVICE_COMMON=sm8250-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"

14
setup-makefiles.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
export DEVICE=alioth
export DEVICE_COMMON=sm8250-common
export VENDOR=xiaomi
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"