aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2019-11-19 00:46:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-19 00:46:27 +0000
commitcd04684215e367235224ab660f76f93534c1eed6 (patch)
tree8f025f9765f095850140b59fc1c4758e57f0e7e5
parent3f8eb7ec99b1dafbaffa098cff126e852284a704 (diff)
parent18c14ea7a8e92222b1e551d36ff33e1a9c8208bd (diff)
downloadbuild-android10-dev.tar.gz
Merge "Enable overrides for ETC modules" into android10-devandroid10-dev
-rw-r--r--core/base_rules.mk2
-rw-r--r--core/main.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk
index 94aa1e4a92..782e5320f9 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -336,6 +336,8 @@ ifneq ($(LOCAL_OVERRIDES_MODULES),)
EXECUTABLES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_MODULES))
else ifeq ($(LOCAL_MODULE_CLASS),SHARED_LIBRARIES)
SHARED_LIBRARIES.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_MODULES))
+ else ifeq ($(LOCAL_MODULE_CLASS),ETC)
+ ETC.$(LOCAL_MODULE).OVERRIDES := $(strip $(LOCAL_OVERRIDES_MODULES))
else
$(call pretty-error,LOCAL_MODULE_CLASS := $(LOCAL_MODULE_CLASS) cannot use LOCAL_OVERRIDES_MODULES)
endif
diff --git a/core/main.mk b/core/main.mk
index df5c13cc2a..791a2db234 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1055,7 +1055,7 @@ $(foreach lt,$(ALL_LINK_TYPES),\
# 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))
+$(foreach m,$(1),$(PACKAGES.$(m).OVERRIDES) $(EXECUTABLES.$(m).OVERRIDES) $(SHARED_LIBRARIES.$(m).OVERRIDES) $(ETC.$(m).OVERRIDES))
endef
###########################################################