Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07babe08 authored by Hongguang's avatar Hongguang Committed by Hongguang Chen
Browse files

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
parent 5667fe0a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 += \