From 07babe080a9a21f63e7d4685be3f9dbd9e746033 Mon Sep 17 00:00:00 2001 From: Hongguang Date: Mon, 31 Oct 2022 17:21:22 -0700 Subject: [PATCH] Check packages/modules before packing otatools keys Fix build error when packages/modules is not existed. Bug: 256565230 Test: make dist, check otatools.zip Change-Id: I4153b143e677e35f95a3d47663cb8efcde7abdbf --- core/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Makefile b/core/Makefile index a3b79a9e67..913abfcae5 100644 --- a/core/Makefile +++ b/core/Makefile @@ -5045,9 +5045,11 @@ INTERNAL_OTATOOLS_PACKAGE_FILES += \ $(sort $(shell find build/make/target/product/security -type f -name "*.x509.pem" -o \ -name "*.pk8")) +ifneq (,$(wildcard packages/modules)) INTERNAL_OTATOOLS_PACKAGE_FILES += \ $(sort $(shell find packages/modules -type f -name "*.x509.pem" -o -name "*.pk8" -o -name \ "key.pem")) +endif ifneq (,$(wildcard device)) INTERNAL_OTATOOLS_PACKAGE_FILES += \