From e3b44f551c286561a1f7a9f38c51d182e76d4542 Mon Sep 17 00:00:00 2001 From: Po-Chien Hsueh Date: Wed, 30 Sep 2020 14:37:40 +0800 Subject: [PATCH] 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 --- core/tasks/platform_availability_check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tasks/platform_availability_check.mk b/core/tasks/platform_availability_check.mk index f252ff530..7ce6b4016 100644 --- a/core/tasks/platform_availability_check.mk +++ b/core/tasks/platform_availability_check.mk @@ -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