forked from openkylin/platform_build
Dedup the targets and dependencies of required modules.
For whatever reason, two modules may have the same file as their installed module. In that case circular dependency is created if the two modules have requited-by relation. Change-Id: I15ed271ca3f3c343e4662182ded5ccc63d6c42cc
This commit is contained in:
parent
5608a8c6e8
commit
3136010cdd
|
@ -582,6 +582,8 @@ $(foreach m,$(ALL_MODULES), \
|
|||
$(eval h_m := $(filter $(HOST_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
|
||||
$(eval t_r := $(filter $(TARGET_OUT_ROOT)/%, $(r))) \
|
||||
$(eval h_r := $(filter $(HOST_OUT_ROOT)/%, $(r))) \
|
||||
$(eval t_m := $(filter-out $(t_r), $(t_m))) \
|
||||
$(eval h_m := $(filter-out $(h_r), $(h_m))) \
|
||||
$(if $(t_m), $(eval $(call add-required-deps, $(t_m),$(t_r)))) \
|
||||
$(if $(h_m), $(eval $(call add-required-deps, $(h_m),$(h_r)))) \
|
||||
) \
|
||||
|
|
Loading…
Reference in New Issue