Commit | Line | Data |
---|---|---|
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 | |
9 | set -e | |
10 | ||
178a6416 | 11 | DEVICE=a5xelte |
1ca84c0f | 12 | VENDOR=samsung |
7c518c34 | 13 | |
178a6416 | 14 | # Load extract_utils and do some sanity checks |
7c518c34 | 15 | MY_DIR="${BASH_SOURCE%/*}" |
178a6416 | 16 | if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi |
7c518c34 | 17 | |
1ca84c0f | 18 | ANDROID_ROOT="${MY_DIR}/../../.." |
7c518c34 | 19 | |
1ca84c0f | 20 | HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" |
178a6416 VO |
21 | if [ ! -f "${HELPER}" ]; then |
22 | echo "Unable to find helper script at ${HELPER}" | |
7c518c34 DW |
23 | exit 1 |
24 | fi | |
178a6416 | 25 | source "${HELPER}" |
7c518c34 DW |
26 | |
27 | # Initialize the helper | |
1ca84c0f | 28 | setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" |
7c518c34 | 29 | |
1ca84c0f MB |
30 | # Warning headers and guards |
31 | write_headers | |
7c518c34 | 32 | |
178a6416 | 33 | write_makefiles "${MY_DIR}/proprietary-files.txt" true |
7c518c34 | 34 | |
178a6416 | 35 | # Finish |
7c518c34 | 36 | write_footers |