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:
@@ -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
|
||||
|
Reference in New Issue
Block a user