Add coverage dependancy
Bug: 297522677
Change-Id: I8a79ff1ac5f95ab9a07ef003028631f4faaefe4f
diff --git a/make/trusted_app.mk b/make/trusted_app.mk
index 68abcfb..48e2499 100644
--- a/make/trusted_app.mk
+++ b/make/trusted_app.mk
@@ -74,6 +74,10 @@
endif
endif
+ifeq (true,$(call TOBOOL,$(UNITTEST_COVERAGE_ENABLED)))
+MODULE_LIBRARY_DEPS += trusty/user/base/lib/line-coverage
+endif
+
MANIFEST_ALLOCATOR := $(subst .json,-$(TRUSTY_APP_ALLOCATOR).json,$(MANIFEST) $(MANIFEST_OVERLAY))
# append allocator-based manifest to the end, so it overrides base manifest values
MANIFEST_OVERLAY += $(wildcard $(MANIFEST_ALLOCATOR))