Update init.rc prebuilt handling
This CL modifies the build system to skip checking of init.rc files if
TARGET_BUILD_UNBUNDLED is set. This is necessary because several of the
artifacts required by the host_init_verifier program aren't present in
unbundled builds.
Test: m
Change-Id: I37be43af81057c5adddc1b80a04d74a090183bc7
diff --git a/core/definitions.mk b/core/definitions.mk
index 2951c05..7f2cc42 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -2544,8 +2544,12 @@
# $(1): source file
# $(2): destination file
define copy-init-script-file-checked
+ifdef TARGET_BUILD_UNBUNDLED
+# TODO (b/185624993): Remove the chck on TARGET_BUILD_UNBUNDLED when host_init_verifier can run
+# without requiring the HIDL interface map.
+$(2): $(1)
+else ifneq ($(HOST_OS),darwin)
# Host init verifier doesn't exist on darwin.
-ifneq ($(HOST_OS),darwin)
$(2): \
$(1) \
$(HOST_INIT_VERIFIER) \