diff --git a/core/base_rules.mk b/core/base_rules.mk index e7da560c90..a178b55c4c 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -622,7 +622,7 @@ ALL_MODULE_TAGS := $(sort $(ALL_MODULE_TAGS) $(my_module_tags)) # Add this module name to the tag list of each specified tag. $(foreach tag,$(my_module_tags),\ - $(eval ALL_MODULE_NAME_TAGS.$(tag) += $(my_register_name))) + $(eval ALL_MODULE_NAME_TAGS.$(tag) := $$(ALL_MODULE_NAME_TAGS.$(tag)) $(my_register_name))) ########################################################### ## umbrella targets used to verify builds diff --git a/core/definitions.mk b/core/definitions.mk index 68964e9ead..f63cff8cc8 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2971,7 +2971,7 @@ STATS.MODULE_TYPE := \ base_rules \ HEADER_LIBRARY -$(foreach $(s),$(STATS.MODULE_TYPE),$(eval STATS.MODULE_TYPE.$(s) :=)) +$(foreach s,$(STATS.MODULE_TYPE),$(eval STATS.MODULE_TYPE.$(s) :=)) define record-module-type $(strip $(if $(LOCAL_RECORDED_MODULE_TYPE),, $(if $(filter-out $(SOONG_ANDROID_MK),$(LOCAL_MODULE_MAKEFILE)),