exynos9610: sepolicy: Bringup for Android 12
[GitHub/LineageOS/android_device_motorola_exynos9610-common.git] / setup-makefiles.sh
CommitLineData
0ece9c09
JA
1#!/bin/bash
2#
81e4f80c 3# Copyright (C) 2016 The CyanogenMod Project
0ece9c09
JA
4# Copyright (C) 2017-2020 The LineageOS Project
5#
81e4f80c 6# SPDX-License-Identifier: Apache-2.0
0ece9c09
JA
7#
8
9set -e
10
0ece9c09 11DEVICE_COMMON=exynos9610-common
81e4f80c 12VENDOR=motorola
0ece9c09
JA
13
14# Load extract_utils and do some sanity checks
15MY_DIR="${BASH_SOURCE%/*}"
16if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
17
81e4f80c 18ANDROID_ROOT="${MY_DIR}/../../.."
0ece9c09 19
81e4f80c 20HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
0ece9c09
JA
21if [ ! -f "${HELPER}" ]; then
22 echo "Unable to find helper script at ${HELPER}"
23 exit 1
24fi
25source "${HELPER}"
26
27# Initialize the helper
81e4f80c 28setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
0ece9c09 29
81e4f80c 30# Warning headers and guards
0ece9c09
JA
31write_headers "kane troika"
32
0ece9c09 33write_makefiles "${MY_DIR}/proprietary-files.txt" true
b6ba0b29 34write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
0ece9c09
JA
35
36# Finish
37write_footers