Loading android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -1524,6 +1524,10 @@ func (c *deviceConfig) VendorPath() string { return "vendor" } func (c *deviceConfig) BuildingVendorImage() bool { return proptools.Bool(c.config.productVariables.BuildingVendorImage) } func (c *deviceConfig) CurrentApiLevelForVendorModules() string { return StringDefault(c.config.productVariables.DeviceCurrentApiLevelForVendorModules, "current") } Loading android/variable.go +5 −4 Original line number Diff line number Diff line Loading @@ -338,6 +338,7 @@ type ProductVariables struct { HWASanExcludePaths []string `json:",omitempty"` VendorPath *string `json:",omitempty"` BuildingVendorImage *bool `json:",omitempty"` OdmPath *string `json:",omitempty"` ProductPath *string `json:",omitempty"` SystemExtPath *string `json:",omitempty"` Loading fsgen/filesystem_creator.go +6 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ func createFsGenState(ctx android.LoadHookContext) *FsGenState { if ctx.DeviceConfig().SystemExtPath() == "system_ext" { generatedPartitions = append(generatedPartitions, "system_ext") } if ctx.DeviceConfig().BuildingVendorImage() && ctx.DeviceConfig().VendorPath() == "vendor" { generatedPartitions = append(generatedPartitions, "vendor") } return &FsGenState{ depCandidates: candidates, Loading Loading @@ -340,6 +343,9 @@ func (f *filesystemCreator) createDeviceModule(ctx android.LoadHookContext) { if android.InList("system_ext", f.properties.Generated_partition_types) { partitionProps.System_ext_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "system_ext")) } if android.InList("vendor", f.properties.Generated_partition_types) { partitionProps.Vendor_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "vendor")) } ctx.CreateModule(filesystem.AndroidDeviceFactory, baseProps, partitionProps) } Loading Loading
android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -1524,6 +1524,10 @@ func (c *deviceConfig) VendorPath() string { return "vendor" } func (c *deviceConfig) BuildingVendorImage() bool { return proptools.Bool(c.config.productVariables.BuildingVendorImage) } func (c *deviceConfig) CurrentApiLevelForVendorModules() string { return StringDefault(c.config.productVariables.DeviceCurrentApiLevelForVendorModules, "current") } Loading
android/variable.go +5 −4 Original line number Diff line number Diff line Loading @@ -338,6 +338,7 @@ type ProductVariables struct { HWASanExcludePaths []string `json:",omitempty"` VendorPath *string `json:",omitempty"` BuildingVendorImage *bool `json:",omitempty"` OdmPath *string `json:",omitempty"` ProductPath *string `json:",omitempty"` SystemExtPath *string `json:",omitempty"` Loading
fsgen/filesystem_creator.go +6 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ func createFsGenState(ctx android.LoadHookContext) *FsGenState { if ctx.DeviceConfig().SystemExtPath() == "system_ext" { generatedPartitions = append(generatedPartitions, "system_ext") } if ctx.DeviceConfig().BuildingVendorImage() && ctx.DeviceConfig().VendorPath() == "vendor" { generatedPartitions = append(generatedPartitions, "vendor") } return &FsGenState{ depCandidates: candidates, Loading Loading @@ -340,6 +343,9 @@ func (f *filesystemCreator) createDeviceModule(ctx android.LoadHookContext) { if android.InList("system_ext", f.properties.Generated_partition_types) { partitionProps.System_ext_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "system_ext")) } if android.InList("vendor", f.properties.Generated_partition_types) { partitionProps.Vendor_partition_name = proptools.StringPtr(generatedModuleNameForPartition(ctx.Config(), "vendor")) } ctx.CreateModule(filesystem.AndroidDeviceFactory, baseProps, partitionProps) } Loading