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