aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2020-12-19 02:53:35 +0200
committerNolen Johnson <johnsonnolen@gmail.com>2021-01-03 02:14:45 +0100
commit1ae080739f86974e7e02ab14f5b867f2df35482a (patch)
tree2a519c66063b0cbf41e58039c5f18ad09b31e47e
parent06c168291d03bcf38422db9f20c1c3442314eaee (diff)
lake: Switch to standalone extract utils
* Align with templates while we are at it Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
-rwxr-xr-xextract-files.sh31
-rwxr-xr-xsetup-makefiles.sh18
2 files changed, 11 insertions, 38 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 771367c..b58aaa2 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -1,45 +1,30 @@
#!/bin/bash
#
-# Copyright (C) 2018-2019 The LineageOS Project
+# Copyright (C) 2016 The CyanogenMod Project
+# Copyright (C) 2017-2020 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
+# SPDX-License-Identifier: Apache-2.0
#
-# 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.
function blob_fixup() {
case "${1}" in
-
# Add uhid group for fingerprint service
vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service-ets.rc)
- sed -i "s/input/uhid input/" "${2}"
- ;;
-
- esac
+ sed -i "s/input/uhid input/" "${2}"
+ ;;
+ esac
}
+# 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=lake
export DEVICE_COMMON=sdm660-common
export VENDOR=motorola
-export DEVICE_BRINGUP_YEAR=2019
-
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index 6465a44..ac7292f 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -1,27 +1,15 @@
#!/bin/bash
#
-# Copyright (C) 2018-2019 The LineageOS Project
+# Copyright (C) 2016 The CyanogenMod Project
+# Copyright (C) 2017-2020 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.
+# SPDX-License-Identifier: Apache-2.0
#
set -e
-# Required!
export DEVICE=lake
export DEVICE_COMMON=sdm660-common
export VENDOR=motorola
-export DEVICE_BRINGUP_YEAR=2019
-
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"