Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce664b0a authored by Daniel Norman's avatar Daniel Norman
Browse files

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
parent c1d847e8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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