Michael Bestas | 411537b | 2020-12-28 00:58:46 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
Michael Bestas | 7830bc1 | 2024-08-27 22:51:30 +0300 | [diff] [blame^] | 3 | # SPDX-FileCopyrightText: 2016 The CyanogenMod Project |
| 4 | # SPDX-FileCopyrightText: 2017-2024 The LineageOS Project |
Michael Bestas | 411537b | 2020-12-28 00:58:46 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | # |
| 7 | |
| 8 | set -e |
| 9 | |
Michael Bestas | 1037453 | 2023-08-29 19:41:38 +0300 | [diff] [blame] | 10 | DEVICE=FP5 |
merothh | fb168c8 | 2022-01-02 18:18:04 +0530 | [diff] [blame] | 11 | VENDOR=fairphone |
Michael Bestas | 411537b | 2020-12-28 00:58:46 +0200 | [diff] [blame] | 12 | |
| 13 | # Load extract_utils and do some sanity checks |
| 14 | MY_DIR="${BASH_SOURCE%/*}" |
| 15 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi |
| 16 | |
| 17 | ANDROID_ROOT="${MY_DIR}/../../.." |
| 18 | |
| 19 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" |
| 20 | if [ ! -f "${HELPER}" ]; then |
| 21 | echo "Unable to find helper script at ${HELPER}" |
| 22 | exit 1 |
| 23 | fi |
| 24 | source "${HELPER}" |
| 25 | |
| 26 | # Initialize the helper |
| 27 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" |
| 28 | |
| 29 | # Warning headers and guards |
| 30 | write_headers |
| 31 | |
| 32 | write_makefiles "${MY_DIR}/proprietary-files.txt" true |
| 33 | |
Michael Bestas | bfccf73 | 2022-02-22 19:22:26 +0200 | [diff] [blame] | 34 | append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt" |
| 35 | |
Michael Bestas | 411537b | 2020-12-28 00:58:46 +0200 | [diff] [blame] | 36 | # Finish |
| 37 | write_footers |