vendor: tasks: Add updatepackage target

Change-Id: If1fe461bfc1eea2c759073d3ab0d48b77024cf88
This commit is contained in:
Omkar Chandorkar 2023-10-09 17:29:58 +02:00 committed by Bartłomiej Rudecki
parent 2d7eb8d7c9
commit 995388722d
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -0,0 +1,34 @@
# Copyright (C) 2017 Unlegacy-Android
# Copyright (C) 2017 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.
# -----------------------------------------------------------------
# tequila fastboot update package
TEQUILA_TARGET_UPDATEPACKAGE := $(PRODUCT_OUT)/teq-$(TEQUILA_VERSION)-fastboot.zip
.PHONY: updatepackage
updatepackage: $(INTERNAL_UPDATE_PACKAGE_TARGET)
$(hide) ln -f $(INTERNAL_UPDATE_PACKAGE_TARGET) $(TEQUILA_TARGET_UPDATEPACKAGE)
# $(hide) $(SHA256) $(TEQUILA_TARGET_UPDATEPACKAGE) | sed "s|$(PRODUCT_OUT)/||" > $(TEQUILA_TARGET_UPDATEPACKAGE).sha256sum
@echo -e " "
@echo -e " __ ____ ____ _____ "
@echo -e " / /____ ________ __/_/ /_____/ __ \/ ___/ "
@echo -e " / __/ _ \/ __ / / / / / / __ / / / /\__ \ "
@echo -e " / /_/ __/ /_/ / /_/ / / / /_/ / /_/ /___/ / "
@echo -e " \__/\___/\__ /\____/_/_/\____/\____//____/ "
@echo -e " /_/ "
@echo -e " "
@echo -e "Package: $(TEQUILA_TARGET_UPDATEPACKAGE)" >&2
@echo -e "Checksum: `cat $(TEQUILA_TARGET_UPDATEPACKAGE).sha256sum | awk '{ print $$1 }'`"