diff options
| author | 2022-11-14 14:17:55 -0800 | |
|---|---|---|
| committer | 2022-11-14 14:17:55 -0800 | |
| commit | 3800b5a78735c804795d6fd60b1d33fa5887e6f3 (patch) | |
| tree | f392c4d9ae6515cde4d0467b44614ea0e17bb258 | |
| parent | 280765acc4d8450797e8dd7629ab0467b522c456 (diff) | |
Only generated notices for built variants.
Test: banchan dcla-notice mainline_modules_arm64; m apps_only dist
Change-Id: I6b0e2eb64f2f3db87dfed68affb44fe141da3eaa
| -rw-r--r-- | android/gen_notice.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/gen_notice.go b/android/gen_notice.go index 008aac5e2..28fddbcee 100644 --- a/android/gen_notice.go +++ b/android/gen_notice.go @@ -61,6 +61,9 @@ func (s *genNoticeBuildRules) GenerateBuildActions(ctx SingletonContext) { if mod == nil { continue } + if !mod.Enabled() { // don't depend on variants without build rules + continue + } modules = append(modules, mod) } } |