Warn when using unrecognized/uncommon tags.
Such tags don't do anything, so using them is at best a no-op, at worst a typo where the author intended something else. Change-Id: I1462032f4df3564b06a82685f226a6d5a665a633
This commit is contained in:
parent
ff22b00329
commit
a831cbdcfc
|
@ -62,6 +62,13 @@ LOCAL_MODULE_TAGS := user
|
||||||
#$(warning default tags: $(lastword $(filter-out config/% out/%,$(MAKEFILE_LIST))))
|
#$(warning default tags: $(lastword $(filter-out config/% out/%,$(MAKEFILE_LIST))))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Only the tags mentioned in this test are expected to be set by module
|
||||||
|
# makefiles. Anything else is either a typo or a source of unexpected
|
||||||
|
# behaviors.
|
||||||
|
ifneq ($(filter-out user debug eng tests optional samples,$(LOCAL_MODULE_TAGS)),)
|
||||||
|
$(warning unusual tags $(LOCAL_MODULE_TAGS) on $(LOCAL_MODULE) at $(LOCAL_PATH))
|
||||||
|
endif
|
||||||
|
|
||||||
# Add implicit tags.
|
# Add implicit tags.
|
||||||
#
|
#
|
||||||
# If the local directory or one of its parents contains a MODULE_LICENSE_GPL
|
# If the local directory or one of its parents contains a MODULE_LICENSE_GPL
|
||||||
|
|
Loading…
Reference in New Issue