Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae3e1d3f authored by Cole Faust's avatar Cole Faust
Browse files

Add vendor and odm to autogenerated bp file

Now that repack has support for structs.

Bug: 371030042
Test: Presubmits
Change-Id: I7b62c946c3f8a398d51dd04b80ceebf19645aaba
parent fe13786c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -774,9 +774,6 @@ func generateBpContent(ctx android.EarlyModuleContext, partitionType string) str
	if !fsTypeSupported {
		return ""
	}
	if partitionType == "vendor" || partitionType == "odm" {
		return "" // TODO: Handle struct props
	}

	baseProps := generateBaseProps(proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), partitionType)))
	deps := ctx.Config().Get(fsGenStateOnceKey).(*FsGenState).fsDeps[partitionType]
@@ -784,7 +781,8 @@ func generateBpContent(ctx android.EarlyModuleContext, partitionType string) str

	result, err := proptools.RepackProperties([]interface{}{baseProps, fsProps, depProps})
	if err != nil {
		ctx.ModuleErrorf(err.Error())
		ctx.ModuleErrorf("%s", err.Error())
		return ""
	}

	moduleType := "android_filesystem"