| #!/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 |