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

Commit adb3687d authored by Martin Stjernholm's avatar Martin Stjernholm Committed by Automerger Merge Worker
Browse files

Merge "Add check that a module doesn't try to override itself." am: 23e4ab2e am: 0e4bbd35

Original change: https://android-review.googlesource.com/c/platform/build/+/1533446

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibb68345001dbc6c5b92be63c9f24bc0ae6a237a1
parents 2b26a9c3 0e4bbd35
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)
# $(1): The list of modules.
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

###########################################################