diff --git a/core/base_rules.mk b/core/base_rules.mk index 04270f0312..19206e8584 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -57,9 +57,12 @@ endif LOCAL_MODULE_TAGS := $(sort $(LOCAL_MODULE_TAGS)) ifeq (,$(LOCAL_MODULE_TAGS)) +ifeq (,$(LOCAL_IS_HOST_MODULE)) # Modules without tags fall back to user (which is changed to user eng below) LOCAL_MODULE_TAGS := user -#$(warning default tags: $(lastword $(filter-out config/% out/%,$(MAKEFILE_LIST)))) +else +LOCAL_MODULE_TAGS := optional +endif endif # Only the tags mentioned in this test are expected to be set by module