Files
device_google_redfin/setup-makefiles.sh
Rashed Abdel-Tawab c9d3722c59 redfin: Set up proprietary files extraction
* Blobs that can be built from source code are built from source.
* The proprietary files lists are generated by comparing stock partition
  contents with AOSP generated partitions.

Co-authored-by: Alessandro Astone <ales.astone@gmail.com>
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Co-authored-by: Chirayu Desai <chirayudesai1@gmail.com>
Co-authored-by: Christopher N. Hesse <raymanfx@gmail.com>
Co-authored-by: Dan Pasanen <dan.pasanen@gmail.com>
Co-authored-by: Eamon Powell <eamonpowell@outlook.com>
Co-authored-by: Josh Chasky <jchasky@gmail.com>
Co-authored-by: "Josh Fox (XlxFoXxlX)" <joshfox87@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Rashed Abdel-Tawab <rashed@linux.com>
Co-authored-by: razorloves <razorloves@gmail.com>
Change-Id: I17f79b417a8f0d022bec9c6b5f37d03b842d43e1
2023-10-18 00:39:41 +03:00

39 lines
864 B
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=redfin
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-carriersettings.txt" true
write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
# Finish
write_footers