From 095bc7d668dd1a862e2fe5fd333e909bdd821b87 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Wed, 21 Apr 2021 18:04:30 -0700 Subject: [PATCH] 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 --- core/definitions.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/definitions.mk b/core/definitions.mk index 2951c05626..7f2cc4291b 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2544,8 +2544,12 @@ endef # $(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) \