diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go
index d5befd9..f54115b 100644
--- a/bootstrap/bootstrap.go
+++ b/bootstrap/bootstrap.go
@@ -764,7 +764,10 @@ func (s *singleton) GenerateBuildActions(ctx blueprint.SingletonContext) {
 		docsFile := filepath.Join(docsDir, primaryBuilderName+".html")
 		bigbpDocs := ctx.Rule(pctx, "bigbpDocs",
 			blueprint.RuleParams{
-				Command: fmt.Sprintf("%s -b $buildDir --docs $out %s", primaryBuilderFile,
+				// CBBA:PATCH
+				// Add the --available_env argument to the soong_build
+				// run.
+				Command: fmt.Sprintf("%s -b $buildDir --docs $out --docs $out --available_env $buildDir/soong.environment.available %s", primaryBuilderFile,
 					s.config.topLevelBlueprintsFile),
 				CommandDeps: []string{primaryBuilderFile},
 				Description: fmt.Sprintf("%s docs $out", primaryBuilderName),
