summaryrefslogtreecommitdiff
path: root/fsgen/filesystem_creator.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-23 00:56:44 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-23 00:56:44 +0000
commitde93b44bbd2ee4965d77e5e28681bfb17c232e3d (patch)
treec79a657ae65644b6e0da29a9385d6f7aff65bbea /fsgen/filesystem_creator.go
parent41259ba69d12bd14bf3f21de6ee2e2017852c1f0 (diff)
parent6dd13b600c77a151affe3daba262ef1ab745cc66 (diff)
Merge "Generate product partition filesystem module in filesystem_creator" into main
Diffstat (limited to 'fsgen/filesystem_creator.go')
-rw-r--r--fsgen/filesystem_creator.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index ab89114e8..fde344b5b 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -104,6 +104,9 @@ func createFsGenState(ctx android.LoadHookContext) *FsGenState {
if ctx.DeviceConfig().BuildingVendorImage() && ctx.DeviceConfig().VendorPath() == "vendor" {
generatedPartitions = append(generatedPartitions, "vendor")
}
+ if ctx.DeviceConfig().BuildingProductImage() && ctx.DeviceConfig().ProductPath() == "product" {
+ generatedPartitions = append(generatedPartitions, "product")
+ }
return &FsGenState{
depCandidates: candidates,
@@ -346,6 +349,9 @@ func (f *filesystemCreator) createDeviceModule(ctx android.LoadHookContext) {
if android.InList("vendor", f.properties.Generated_partition_types) {
partitionProps.Vendor_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "vendor"))
}
+ if android.InList("product", f.properties.Generated_partition_types) {
+ partitionProps.Product_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "product"))
+ }
ctx.CreateModule(filesystem.AndroidDeviceFactory, baseProps, partitionProps)
}