blob: ca2586abe6555d5f73c8856282517f0591aabc2d [file] [log] [blame]
Michael Bestas411537b2020-12-28 00:58:46 +02001#!/bin/bash
2#
3# Copyright (C) 2016 The CyanogenMod Project
4# Copyright (C) 2017-2020 The LineageOS Project
5#
6# SPDX-License-Identifier: Apache-2.0
7#
8
9set -e
10
merothhfb168c82022-01-02 18:18:04 +053011DEVICE=FP4
12VENDOR=fairphone
Michael Bestas411537b2020-12-28 00:58:46 +020013
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
34
35# Finish
36write_footers