Unless overridden include LICENSE files in notices.
As a second step to removing the go/android3p instructions to copy or to link NOTICE to LICENSE, include LICENSE files in the notices, which will allow deleting all of the copied/linked NOTICE files. The change causes a few additions to the system image notice files. Test: manually built and compared before and after notices Change-Id: Ia7bc58e2eba7bed5e63934881b5298201a93bc3e
This commit is contained in:
@@ -644,13 +644,13 @@ func (c *vndkSnapshotSingleton) GenerateBuildActions(ctx android.SingletonContex
|
||||
moduleNames[stem] = ctx.ModuleName(m)
|
||||
modulePaths[stem] = ctx.ModuleDir(m)
|
||||
|
||||
if m.NoticeFile().Valid() {
|
||||
if len(m.NoticeFiles()) > 0 {
|
||||
noticeName := stem + ".txt"
|
||||
// skip already copied notice file
|
||||
if _, ok := noticeBuilt[noticeName]; !ok {
|
||||
noticeBuilt[noticeName] = true
|
||||
snapshotOutputs = append(snapshotOutputs, copyFile(
|
||||
ctx, m.NoticeFile().Path(), filepath.Join(noticeDir, noticeName)))
|
||||
snapshotOutputs = append(snapshotOutputs, combineNotices(
|
||||
ctx, m.NoticeFiles(), filepath.Join(noticeDir, noticeName)))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user