From 0465b59cd78f23618e472b79e2bbc4266fd5301d Mon Sep 17 00:00:00 2001 From: Max Weffers Date: Sun, 2 Jun 2019 07:44:08 +0200 Subject: [PATCH] clover: Add vendor scripts for new Vendor Layout --- extract-files.sh | 33 +++++++++++++++++++++++++++++++++ setup-makefiles.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 extract-files.sh create mode 100644 setup-makefiles.sh diff --git a/extract-files.sh b/extract-files.sh new file mode 100644 index 0000000..858de0a --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +# Copyright (C) 2017-2019 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# If we're being sourced by the common script that we called, +# stop right here. No need to go down the rabbit hole. +if [ "${BASH_SOURCE[0]}" != "${0}" ]; then + return +fi + +set -e + +# Required! +export DEVICE=clover +export DEVICE_COMMON=sdm660-common +export VENDOR=xiaomi + +export DEVICE_BRINGUP_YEAR=2018 + +"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100644 index 0000000..4d9f230 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Copyright (C) 2017-2019 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set -e + +# Required! +export DEVICE=clover +export DEVICE_COMMON=sdm660-common +export VENDOR=xiaomi + +export DEVICE_BRINGUP_YEAR=2018 + +"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"