diff options
| author | 2024-10-22 23:21:02 +0000 | |
|---|---|---|
| committer | 2024-10-22 23:21:02 +0000 | |
| commit | 6dd13b600c77a151affe3daba262ef1ab745cc66 (patch) | |
| tree | 0d5dc5bc3f57d82ddfc81fb5983ebe033558b0b6 /fsgen/filesystem_creator.go | |
| parent | c833fb33ac3de3b1b16ecf5a5430e8d1d80e6b2f (diff) | |
Generate product partition filesystem module in filesystem_creator
Bug: 374388294
Test: CI
Change-Id: I02786d0e9bf1a43a3527b647d5379d35e489076c
Diffstat (limited to 'fsgen/filesystem_creator.go')
| -rw-r--r-- | fsgen/filesystem_creator.go | 6 |
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) } |