blob: 739edb7e132a95a531486bc4d18c421129f47520 [file] [log] [blame]
micky38718f07ac2019-06-10 00:40:50 +02001#!/bin/bash
2#
3# Copyright (C) 2016 The CyanogenMod Project
4# (C) 2017 The LineageOS Project
5# (C) 2018 The Omnirom Project
6#
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18#
19
20set -e
21
22# Required!
micky38781c15c82021-05-21 12:59:35 +020023DEVICE=zenfone8
micky38718f07ac2019-06-10 00:40:50 +020024VENDOR=asus
25
micky3876e3fa0b2021-05-26 02:40:00 +020026INITIAL_COPYRIGHT_YEAR=2021
micky38718f07ac2019-06-10 00:40:50 +020027
28# Load extractutils and do some sanity checks
29MY_DIR="${BASH_SOURCE%/*}"
30if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
31
32CM_ROOT="$MY_DIR"/../../..
33
34HELPER="$CM_ROOT"/vendor/omni/build/tools/extract_utils.sh
35if [ ! -f "$HELPER" ]; then
36 echo "Unable to find helper script at $HELPER"
37 exit 1
38fi
39. "$HELPER"
40
41# Initialize the helper
42setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
43
44# Copyright headers and guards
micky38781c15c82021-05-21 12:59:35 +020045write_headers "zenfone8"
micky38718f07ac2019-06-10 00:40:50 +020046
47# The standard blobs
48write_makefiles "$MY_DIR"/proprietary-files.txt
49
micky38712a59b72019-11-30 14:03:51 +010050write_makefiles "$MY_DIR"/proprietary-files-product.txt
micky38718f07ac2019-06-10 00:40:50 +020051
52cat << EOF >> "$ANDROIDMK"
micky38718f07ac2019-06-10 00:40:50 +020053
54EOF
55
56# We are done!
57write_footers
58