exynos9610: sepolicy: Bringup for Android 12
[GitHub/LineageOS/android_device_motorola_exynos9610-common.git] / setup-makefiles.sh
1 #!/bin/bash
2 #
3 # Copyright (C) 2016 The CyanogenMod Project
4 # Copyright (C) 2017-2020 The LineageOS Project
5 #
6 # SPDX-License-Identifier: Apache-2.0
7 #
8
9 set -e
10
11 DEVICE_COMMON=exynos9610-common
12 VENDOR=motorola
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
18 ANDROID_ROOT="${MY_DIR}/../../.."
19
20 HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
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
28 setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
29
30 # Warning headers and guards
31 write_headers "kane troika"
32
33 write_makefiles "${MY_DIR}/proprietary-files.txt" true
34 write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
35
36 # Finish
37 write_footers