Loading core/main.mk +5 −1 Original line number Original line Diff line number Diff line Loading @@ -1120,7 +1120,11 @@ $(foreach export,$(EXPORTS_LIST),$(eval $(call add-dependency,$$(EXPORTS.$$(expo # Expand a list of modules to the modules that they override (if any) # Expand a list of modules to the modules that they override (if any) # $(1): The list of modules. # $(1): The list of modules. define module-overrides define module-overrides $(foreach m,$(1),$(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES) $(ETC.$(m).OVERRIDES)) $(foreach m,$(1),\ $(eval _mo_overrides := $(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES) $(ETC.$(m).OVERRIDES))\ $(if $(filter $(m),$(_mo_overrides)),\ $(error Module $(m) cannot override itself),\ $(_mo_overrides))) endef endef ########################################################### ########################################################### Loading Loading
core/main.mk +5 −1 Original line number Original line Diff line number Diff line Loading @@ -1120,7 +1120,11 @@ $(foreach export,$(EXPORTS_LIST),$(eval $(call add-dependency,$$(EXPORTS.$$(expo # Expand a list of modules to the modules that they override (if any) # Expand a list of modules to the modules that they override (if any) # $(1): The list of modules. # $(1): The list of modules. define module-overrides define module-overrides $(foreach m,$(1),$(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES) $(ETC.$(m).OVERRIDES)) $(foreach m,$(1),\ $(eval _mo_overrides := $(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES) $(ETC.$(m).OVERRIDES))\ $(if $(filter $(m),$(_mo_overrides)),\ $(error Module $(m) cannot override itself),\ $(_mo_overrides))) endef endef ########################################################### ########################################################### Loading