aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Muir <muirj@google.com>2018-04-11 11:42:26 -0700
committerJohn Muir <muirj@google.com>2018-04-11 13:07:13 -0700
commit58d96b150e5486d103299cb9dcfec0d1343b5f80 (patch)
treea8a878b9117cfe851a168912d556bf879a4f4a46
parent9b72b53a24cae857d184eef051d04f37da1b385e (diff)
downloadbuild-58d96b150e5486d103299cb9dcfec0d1343b5f80.tar.gz
notice_files: Disable NOTICE files for FAKE modules.
Currently the build system will automatically attribute a NOTICE file with the target of $(BUILD_PHONY_PACKAGE). This shouldn't be the case. Disable notice file inclusion for fake targets so that the /fake_packages/blah_blah-timestamp paths don't show up in NOTICE.xml.gz. Bug: 77910458 Test: NOTICE files are not attributed to fake targets. Change-Id: Ia942cac41b750efbd5a23d896d85ac0820ee8b4e
-rw-r--r--core/notice_files.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/notice_files.mk b/core/notice_files.mk
index 383d73c21e..9dce2b35f8 100644
--- a/core/notice_files.mk
+++ b/core/notice_files.mk
@@ -14,6 +14,11 @@ ifeq ($(LOCAL_MODULE_CLASS),GYP)
notice_file :=
endif
+ifeq ($(LOCAL_MODULE_CLASS),FAKE)
+ # We ignore NOTICE files for modules of type FAKE.
+ notice_file :=
+endif
+
# Soong generates stub libraries that don't need NOTICE files
ifdef LOCAL_NO_NOTICE_FILE
ifneq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK))