diff --git a/core/notice_files.mk b/core/notice_files.mk index fd76d5159c..74beb49b5d 100644 --- a/core/notice_files.mk +++ b/core/notice_files.mk @@ -2,9 +2,9 @@ ## Track NOTICE files ########################################################### -notice_file:=$(shell find $(LOCAL_PATH) -maxdepth 1 -name NOTICE) +notice_file:=$(strip $(wildcard $(LOCAL_PATH)/NOTICE)) -ifneq ($(strip $(notice_file)),) +ifdef notice_file # This relies on the name of the directory in PRODUCT_OUT matching where # it's installed on the target - i.e. system, data, etc. This does