commit | 3800b5a78735c804795d6fd60b1d33fa5887e6f3 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Mon Nov 14 14:17:55 2022 -0800 |
committer | Bob Badour <bbadour@google.com> | Mon Nov 14 14:17:55 2022 -0800 |
tree | f392c4d9ae6515cde4d0467b44614ea0e17bb258 | |
parent | 280765acc4d8450797e8dd7629ab0467b522c456 [diff] [blame] |
Only generated notices for built variants. Test: banchan dcla-notice mainline_modules_arm64; m apps_only dist Change-Id: I6b0e2eb64f2f3db87dfed68affb44fe141da3eaa
diff --git a/android/gen_notice.go b/android/gen_notice.go index 008aac5..28fddbc 100644 --- a/android/gen_notice.go +++ b/android/gen_notice.go
@@ -61,6 +61,9 @@ if mod == nil { continue } + if !mod.Enabled() { // don't depend on variants without build rules + continue + } modules = append(modules, mod) } }