Filter out host paths on platform-availability-check errors

If a module, which is installed to both the host and the platform,
fails the platform-availability-check, the build system might use
the host install path to report errors. Filter out the host install
path so that the platform install path is used.

Bug: 169393514
Test: make
Change-Id: Ib39715ffc45cc32e3bd7ce5f2a3725d243f3237f
This commit is contained in:
Po-Chien Hsueh 2020-09-30 14:37:40 +08:00
parent fd4a406174
commit e3b44f551c
1 changed files with 1 additions and 1 deletions

View File

@ -51,6 +51,6 @@ it depends on other modules that are not available for platform.)
endef
$(foreach m,$(_modules_not_available_for_platform),\
$(foreach i,$(ALL_MODULES.$(m).INSTALLED),\
$(foreach i,$(filter-out $(HOST_OUT)/%,$(ALL_MODULES.$(m).INSTALLED)),\
$(eval $(call not_available_for_platform_rule,$(i),$(m)))))
endif