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