blob: 8869ebf4038345111ef581b8f0d43499907c0a60 [file] [log] [blame]
Michael Bestas411537b2020-12-28 00:58:46 +02001#!/bin/bash
2#
Michael Bestas7830bc12024-08-27 22:51:30 +03003# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
4# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
Michael Bestas411537b2020-12-28 00:58:46 +02005# SPDX-License-Identifier: Apache-2.0
6#
7
8set -e
9
Michael Bestas10374532023-08-29 19:41:38 +030010DEVICE=FP5
merothhfb168c82022-01-02 18:18:04 +053011VENDOR=fairphone
Michael Bestas411537b2020-12-28 00:58:46 +020012
13# Load extract_utils and do some sanity checks
14MY_DIR="${BASH_SOURCE%/*}"
15if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
16
17ANDROID_ROOT="${MY_DIR}/../../.."
18
19HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
20if [ ! -f "${HELPER}" ]; then
21 echo "Unable to find helper script at ${HELPER}"
22 exit 1
23fi
24source "${HELPER}"
25
26# Initialize the helper
27setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
28
29# Warning headers and guards
30write_headers
31
32write_makefiles "${MY_DIR}/proprietary-files.txt" true
33
Michael Bestasbfccf732022-02-22 19:22:26 +020034append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"
35
Michael Bestas411537b2020-12-28 00:58:46 +020036# Finish
37write_footers