From 3800b5a78735c804795d6fd60b1d33fa5887e6f3 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Mon, 14 Nov 2022 14:17:55 -0800 Subject: [PATCH] Only generated notices for built variants. Test: banchan dcla-notice mainline_modules_arm64; m apps_only dist Change-Id: I6b0e2eb64f2f3db87dfed68affb44fe141da3eaa --- android/gen_notice.go | 3 +++ 1 file changed, 3 insertions(+) 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) } }