Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60052f3a authored by Yo Chiang's avatar Yo Chiang
Browse files

Error if $(LOCAL_PATH) is empty

Bug: 162918277
Test: m com.android.art
Test: m MODULES-IN-art
Change-Id: I7c35dba22385e89313ea7210e9b1db15c7f6af86
parent 66853bb3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ endif
## 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))
ifeq ($(LOCAL_MODULE),)
  $(error $(LOCAL_PATH): LOCAL_MODULE is not defined)