Specify options_file in vendor_ramdisk prebuilt_kernel module
To install module.options file to the vendor_ramdisk partition
Test: m soong_generated_vendor_ramdisk_filesystem_test
Bug: 381104942
Change-Id: I872a2100ce72171394731e6295fa4d1a611a3f4f
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index 556c4dc..8325b1e 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -507,6 +507,7 @@
Vendor_ramdisk *bool
Load_by_default *bool
Blocklist_file *string
+ Options_file *string
}{
Name: proptools.StringPtr(name),
}
@@ -543,6 +544,10 @@
if blocklistFile := ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.VendorRamdiskKernelBlocklistFile; blocklistFile != "" {
props.Blocklist_file = proptools.StringPtr(blocklistFile)
}
+ if optionsFile := ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.VendorRamdiskKernelOptionsFile; optionsFile != "" {
+ props.Options_file = proptools.StringPtr(optionsFile)
+ }
+
default:
ctx.ModuleErrorf("DLKM is not supported for %s\n", partitionType)
}