From 51e9574d8487f21ce85583c9148a6a1a0dc10b83 Mon Sep 17 00:00:00 2001 From: "Rohit R. Sekhar" Date: Mon, 3 Oct 2022 10:01:12 +0530 Subject: [PATCH] flash: Generate hashsums for IMG package --- flash/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flash/Android.mk b/flash/Android.mk index 9446a83..f6e4711 100644 --- a/flash/Android.mk +++ b/flash/Android.mk @@ -5,6 +5,8 @@ IMG_PACKAGE_TARGET_CONFIG := $(LOCAL_PATH)/$(TARGET_DEVICE)/config.mk ifneq (,$(wildcard $(IMG_PACKAGE_TARGET_CONFIG))) IMAGE_PACKAGE_NAME := IMG-e-$(LINEAGE_VERSION) INSTALLED_IMG_PACKAGE_TARGET := $(PRODUCT_OUT)/$(IMAGE_PACKAGE_NAME).zip +MD5 := prebuilts/build-tools/path/$(HOST_PREBUILT_TAG)/md5sum +SHA256 := prebuilts/build-tools/path/$(HOST_PREBUILT_TAG)/sha256sum $(INSTALLED_IMG_PACKAGE_TARGET): intermediates := $(call intermediates-dir-for,PACKAGING,IMG_PACKAGE) $(INSTALLED_IMG_PACKAGE_TARGET): zip_root := $(intermediates)/$(IMAGE_PACKAGE_NAME) @@ -30,6 +32,8 @@ $(INSTALLED_IMG_PACKAGE_TARGET): $(INCLUDE_IN_IMG_PACKAGE) $(INSTALLED_RADIOIMAG cp -r $(t) $(zip_root)/$(notdir $(t));) $(hide) find $(zip_root) | sort > $(zip_root).zip.list $(hide) $(SOONG_ZIP) -d -o $@ -C $(zip_root) -l $(zip_root).zip.list + $(hide) $(MD5) $@ | sed "s|$(PRODUCT_OUT)/||" > $@.md5sum + $(hide) $(SHA256) $@ | sed "s|$(PRODUCT_OUT)/||" > $@.sha256sum bacon: $(INSTALLED_IMG_PACKAGE_TARGET) endif -- GitLab