a5xelte: build fastcharge hidl
[GitHub/LineageOS/android_device_samsung_a5xelte.git] / setup-makefiles.sh
CommitLineData
7c518c34 1#!/bin/bash
178a6416 2#
1ca84c0f
MB
3# Copyright (C) 2016 The CyanogenMod Project
4# Copyright (C) 2017-2020 The LineageOS Project
7c518c34 5#
1ca84c0f 6# SPDX-License-Identifier: Apache-2.0
178a6416 7#
7c518c34
DW
8
9set -e
10
178a6416 11DEVICE=a5xelte
1ca84c0f 12VENDOR=samsung
7c518c34 13
178a6416 14# Load extract_utils and do some sanity checks
7c518c34 15MY_DIR="${BASH_SOURCE%/*}"
178a6416 16if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
7c518c34 17
1ca84c0f 18ANDROID_ROOT="${MY_DIR}/../../.."
7c518c34 19
1ca84c0f 20HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
178a6416
VO
21if [ ! -f "${HELPER}" ]; then
22 echo "Unable to find helper script at ${HELPER}"
7c518c34
DW
23 exit 1
24fi
178a6416 25source "${HELPER}"
7c518c34
DW
26
27# Initialize the helper
1ca84c0f 28setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
7c518c34 29
1ca84c0f
MB
30# Warning headers and guards
31write_headers
7c518c34 32
178a6416 33write_makefiles "${MY_DIR}/proprietary-files.txt" true
7c518c34 34
178a6416 35# Finish
7c518c34 36write_footers