diff options
Diffstat (limited to 'android/neverallow.go')
-rw-r--r-- | android/neverallow.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/neverallow.go b/android/neverallow.go index 00078a025..1cdccc317 100644 --- a/android/neverallow.go +++ b/android/neverallow.go @@ -58,6 +58,7 @@ func init() { AddNeverAllowRules(createMakefileGoalRules()...) AddNeverAllowRules(createInitFirstStageRules()...) AddNeverAllowRules(createProhibitFrameworkAccessRules()...) + AddNeverAllowRules(createBp2BuildRule()) } // Add a NeverAllow rule to the set of rules to apply. @@ -65,6 +66,13 @@ func AddNeverAllowRules(rules ...Rule) { neverallows = append(neverallows, rules...) } +func createBp2BuildRule() Rule { + return NeverAllow(). + With("bazel_module.bp2build_available", "true"). + Because("setting bp2build_available in Android.bp is not " + + "supported for custom conversion, use allowlists.go instead.") +} + func createIncludeDirsRules() []Rule { notInIncludeDir := []string{ "art", |