aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-08-31 15:07:09 -0700
committerColin Cross <ccross@android.com>2017-09-01 13:21:53 -0700
commit5aac3629493e4df7a1e7d2b594021c380d25141f (patch)
treecf8b1065f12d880c3cadd420807c29faab491c0e /android
parent7f9036c89bca2f4b246edd9fdde005afc8051e24 (diff)
downloadbuild_soong-5aac3629493e4df7a1e7d2b594021c380d25141f.tar.gz
build_soong-5aac3629493e4df7a1e7d2b594021c380d25141f.tar.bz2
build_soong-5aac3629493e4df7a1e7d2b594021c380d25141f.zip
Add notice property to all modules
Add a notice property to all modules which, if set, propagates to LOCAL_NOTICE_FILE in make. Test: m -j checkbuild, examine out/soong/Android*.mk Change-Id: I565a5624dfd7b376b976b1a43dac5cea96869026
Diffstat (limited to 'android')
-rw-r--r--android/androidmk.go3
-rw-r--r--android/module.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/android/androidmk.go b/android/androidmk.go
index 46e7fcf2..9e541feb 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -232,6 +232,9 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
if amod.commonProperties.Owner != nil {
fmt.Fprintln(&data.preamble, "LOCAL_MODULE_OWNER :=", *amod.commonProperties.Owner)
}
+ if amod.commonProperties.Notice != nil {
+ fmt.Fprintln(&data.preamble, "LOCAL_NOTICE_FILE :=", *amod.commonProperties.Notice)
+ }
}
if host {
diff --git a/android/module.go b/android/module.go
index fb2e7030..bacf6663 100644
--- a/android/module.go
+++ b/android/module.go
@@ -162,6 +162,9 @@ type commonProperties struct {
// names of other modules to install if this module is installed
Required []string `android:"arch_variant"`
+ // relative path to a file to include in the list of notices for the device
+ Notice *string
+
// Set by TargetMutator
CompileTarget Target `blueprint:"mutated"`
CompilePrimary bool `blueprint:"mutated"`