mirror of
https://github.com/Evolution-X-Devices/device_google_taimen
synced 2026-01-27 15:59:12 +00:00
This is a squash of the following: Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Jun 19 23:55:25 2018 +0100 taimen: Fix typo from CodeAurora in blob_fixup * Let com.qualcomm.qcrilmsgtunnel break free Change-Id: Ide5759eef7e3100ac5b50f5dc95a3f90119e592f Author: Michael Bestas <mkbestas@lineageos.org> Date: Sat Dec 19 02:53:35 2020 +0200 taimen: Switch to standalone extract utils Align with templates while we are at it Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4 Author: Rashed Abdel-Tawab <rashed@linux.com> Date: Tue May 14 00:36:02 2019 -0700 taimen: Import and tailor {extract-files,setup-makefiles}.sh * Partial pick of Id399faa404207ce018f0f0187c9576b61f5d4dc9. Change-Id: I866e015e3ba717ae7fc585dc56f118f3e251154c Change-Id: I231d822f364f57314009be4d08af993b97bf5705
38 lines
793 B
Bash
38 lines
793 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
|
# Copyright (C) 2017-2020 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
|
|
DEVICE=taimen
|
|
VENDOR=google
|
|
|
|
# Load extract_utils and do some sanity checks
|
|
MY_DIR="${BASH_SOURCE%/*}"
|
|
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
|
|
|
|
ANDROID_ROOT="${MY_DIR}/../../.."
|
|
|
|
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
|
|
if [ ! -f "${HELPER}" ]; then
|
|
echo "Unable to find helper script at ${HELPER}"
|
|
exit 1
|
|
fi
|
|
source "${HELPER}"
|
|
|
|
# Initialize the helper
|
|
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
|
|
|
|
# Warning headers and guards
|
|
write_headers
|
|
|
|
write_makefiles "${MY_DIR}/proprietary-files.txt" true
|
|
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
|
|
|
|
# Finish
|
|
write_footers
|