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