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

Commit e3b44f55 authored by Po-Chien Hsueh's avatar Po-Chien Hsueh
Browse files

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
parent fd4a4061
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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