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