Uses the KNOWN_HIDL_INTERFACES file in host_init_verifier.

This file is used to check that each interface in an init_rc file is a
known hidl_interface.

Test: Adding a misspelling to an init_rc's interface line and observing
build failure.
Bug: 77646540
Change-Id: I30c2dff29679b95085b5c76f6d68e4d794f965e9
This commit is contained in:
Daniel Norman
2019-06-20 13:40:39 -07:00
parent c1d847e885
commit ce664b0a37

View File

@@ -2449,8 +2449,12 @@ endef
define copy-init-script-file-checked
# Host init verifier doesn't exist on darwin.
ifneq ($(HOST_OS),darwin)
$(2): $(1) $(HOST_INIT_VERIFIER) $(call intermediates-dir-for,ETC,passwd)/passwd
$(hide) $(HOST_INIT_VERIFIER) -p $(call intermediates-dir-for,ETC,passwd)/passwd $$<
$(2): \
$(1) \
$(HOST_INIT_VERIFIER) \
$(KNOWN_HIDL_INTERFACES) \
$(call intermediates-dir-for,ETC,passwd)/passwd
$(hide) $(HOST_INIT_VERIFIER) -p $(call intermediates-dir-for,ETC,passwd)/passwd -k $(KNOWN_HIDL_INTERFACES) $$<
else
$(2): $(1)
endif