Alexander Martinz | bcf6d67 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (C) 2016 The CyanogenMod Project |
Michael Bestas | 3a60fe1 | 2022-02-22 19:22:26 +0200 | [diff] [blame] | 4 | # Copyright (C) 2017-2023 The LineageOS Project |
Alexander Martinz | bcf6d67 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 5 | # |
| 6 | # SPDX-License-Identifier: Apache-2.0 |
| 7 | # |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | DEVICE=axolotl |
| 12 | VENDOR=shift |
| 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 |
Alexander Martinz | bf6dd3f | 2022-12-19 23:13:42 +0100 | [diff] [blame] | 34 | write_makefiles "${MY_DIR}/proprietary-files-widevine.txt" true |
Alexander Martinz | bcf6d67 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 35 | |
Michael Bestas | 3a60fe1 | 2022-02-22 19:22:26 +0200 | [diff] [blame] | 36 | append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt" |
| 37 | |
Alexander Martinz | bcf6d67 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 38 | # Finish |
| 39 | write_footers |