blob: e09bc0640ed09de13351d9873b1e9af3dea85971 [file] [log] [blame]
#!/bin/bash
#
# Copyright (C) 2020 Paranoid Android
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=laurel_sprout
VENDOR=xiaomi
INITIAL_COPYRIGHT_YEAR=2019
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
PA_ROOT="$MY_DIR"/../../..
HELPER="$PA_ROOT"/vendor/pa/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"
# Initialize the helper
setup_vendor "$DEVICE" "$VENDOR" "$PA_ROOT"
# Copyright headers and guards
write_headers
write_makefiles "$MY_DIR"/proprietary-files.txt
# Finish
write_footers