blob: d56bb352edc00fd352607c13d28511617826be77 [file] [log] [blame]
Alexander Martinzbcf6d672021-08-26 17:27:03 +02001#!/bin/bash
2#
3# Copyright (C) 2016 The CyanogenMod Project
Michael Bestas3a60fe12022-02-22 19:22:26 +02004# Copyright (C) 2017-2023 The LineageOS Project
Alexander Martinzbcf6d672021-08-26 17:27:03 +02005#
6# SPDX-License-Identifier: Apache-2.0
7#
8
9set -e
10
11DEVICE=axolotl
12VENDOR=shift
13
14# Load extract_utils and do some sanity checks
15MY_DIR="${BASH_SOURCE%/*}"
16if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
17
18ANDROID_ROOT="${MY_DIR}/../../.."
19
20HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
21if [ ! -f "${HELPER}" ]; then
22 echo "Unable to find helper script at ${HELPER}"
23 exit 1
24fi
25source "${HELPER}"
26
27# Initialize the helper
28setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
29
30# Warning headers and guards
31write_headers
32
33write_makefiles "${MY_DIR}/proprietary-files.txt" true
Alexander Martinzbf6dd3f2022-12-19 23:13:42 +010034write_makefiles "${MY_DIR}/proprietary-files-widevine.txt" true
Alexander Martinzbcf6d672021-08-26 17:27:03 +020035
Michael Bestas3a60fe12022-02-22 19:22:26 +020036append_firmware_calls_to_makefiles "${MY_DIR}/proprietary-firmware.txt"
37
Alexander Martinzbcf6d672021-08-26 17:27:03 +020038# Finish
39write_footers