whyred: Upstream extract_utils

Change-Id: I546e9648c33299d691a305f526a8c6115b06e03a
This commit is contained in:
Nicholas Lim 2018-11-09 10:37:11 +08:00
parent 76e3fc4e31
commit 7a88073282
2 changed files with 11 additions and 15 deletions

View file

@ -2,7 +2,6 @@
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS Project
# Copyright (C) 2018 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -19,10 +18,10 @@
set -e
DEVICE=whyred
VENDOR=xiaomi
INITIAL_COPYRIGHT_YEAR=2018
export DEVICE=whyred
export VENDOR=xiaomi
export TREBLE_COMPATIBLE=1
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
@ -37,14 +36,13 @@ if [ ! -f "$HELPER" ]; then
fi
. "$HELPER"
# Initialize the helper for common
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true
# Initialize the helper
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT"
# Copyright headers and guards
write_headers "whyred"
write_headers
# The standard common blobs
write_makefiles "$MY_DIR"/proprietary-files.txt 1
write_makefiles "$MY_DIR"/proprietary-files.txt true
# Finish
write_footers