Skip check_vintf_system_deps if not building system image
There's no point testing the system vintf boundary on a system image
-less target.
Bug: 326354182
Bug: 326359088
Test: Build a system image -less target
Change-Id: I1ef71f93acb1e7a6252ae14e18c30cb23cb08db2
diff --git a/core/Makefile b/core/Makefile
index d4e241e..3aa8d61 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -5110,6 +5110,7 @@
endif
# -- Check system and system_ext manifests / matrices including fragments (excluding other framework manifests / matrices, e.g. product);
+ifdef BUILDING_SYSTEM_IMAGE
check_vintf_system_deps := $(filter $(TARGET_OUT)/etc/vintf/% \
$(TARGET_OUT_SYSTEM_EXT)/etc/vintf/%, \
$(check_vintf_common_srcs))
@@ -5139,6 +5140,8 @@
endif # check_vintf_system_deps
check_vintf_system_deps :=
+endif # BUILDING_SYSTEM_IMAGE
+
# -- Check vendor manifest / matrix including fragments (excluding other device manifests / matrices)
check_vintf_vendor_deps := $(filter $(TARGET_OUT_VENDOR)/etc/vintf/% \
$(TARGET_OUT_VENDOR)/apex/%, \