Merge "Error if $(LOCAL_PATH) is empty"

This commit is contained in:
Yo Chiang
2020-08-11 07:58:57 +00:00
committed by Gerrit Code Review

View File

@@ -27,6 +27,11 @@ endif
## Common instructions for a generic module. ## Common instructions for a generic module.
########################################################### ###########################################################
LOCAL_PATH := $(strip $(LOCAL_PATH))
ifeq ($(LOCAL_PATH),)
$(error LOCAL_PATH is not defined)
endif
LOCAL_MODULE := $(strip $(LOCAL_MODULE)) LOCAL_MODULE := $(strip $(LOCAL_MODULE))
ifeq ($(LOCAL_MODULE),) ifeq ($(LOCAL_MODULE),)
$(error $(LOCAL_PATH): LOCAL_MODULE is not defined) $(error $(LOCAL_PATH): LOCAL_MODULE is not defined)