summaryrefslogtreecommitdiff
path: root/fsgen/filesystem_creator.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-12-20 00:51:52 +0000
committer Jihoon Kang <jihoonkang@google.com> 2024-12-20 00:58:38 +0000
commit6cbcd5d9652225a0715b7f5d0ce5b3bac56e9291 (patch)
tree82757497a76f5e321b980a58b08182f41c8d8997 /fsgen/filesystem_creator.go
parentee97ae8c667dba51897e4a9cdfe5e6df9255dee1 (diff)
Specify strip_debug_symbol property in vendor_ramdisk kernel prebuilts
To make the soong installed kernel object files bit identical to those of the make installed ones. Test: unpack soong and make generated vendor_ramdisk partitions and diff Bug: 381104942 Change-Id: I02931e114e121ae1d047ca45275716d4901d92e5
Diffstat (limited to 'fsgen/filesystem_creator.go')
-rw-r--r--fsgen/filesystem_creator.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index 59470d3fc..08685612a 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -507,7 +507,8 @@ func (f *filesystemCreator) createPrebuiltKernelModules(ctx android.LoadHookCont
Options_file *string
Strip_debug_symbols *bool
}{
- Name: proptools.StringPtr(name),
+ Name: proptools.StringPtr(name),
+ Strip_debug_symbols: proptools.BoolPtr(false),
}
switch partitionType {
case "system_dlkm":
@@ -521,7 +522,6 @@ func (f *filesystemCreator) createPrebuiltKernelModules(ctx android.LoadHookCont
if blocklistFile := ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.SystemKernelBlocklistFile; blocklistFile != "" {
props.Blocklist_file = proptools.StringPtr(blocklistFile)
}
- props.Strip_debug_symbols = proptools.BoolPtr(false)
case "vendor_dlkm":
props.Srcs = android.ExistentPathsForSources(ctx, ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.VendorKernelModules).Strings()
if len(ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.SystemKernelModules) > 0 {
@@ -531,14 +531,12 @@ func (f *filesystemCreator) createPrebuiltKernelModules(ctx android.LoadHookCont
if blocklistFile := ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.VendorKernelBlocklistFile; blocklistFile != "" {
props.Blocklist_file = proptools.StringPtr(blocklistFile)
}
- props.Strip_debug_symbols = proptools.BoolPtr(false)
case "odm_dlkm":
props.Srcs = android.ExistentPathsForSources(ctx, ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.OdmKernelModules).Strings()
props.Odm_dlkm_specific = proptools.BoolPtr(true)
if blocklistFile := ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.OdmKernelBlocklistFile; blocklistFile != "" {
props.Blocklist_file = proptools.StringPtr(blocklistFile)
}
- props.Strip_debug_symbols = proptools.BoolPtr(false)
case "vendor_ramdisk":
props.Srcs = android.ExistentPathsForSources(ctx, ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.VendorRamdiskKernelModules).Strings()
props.Vendor_ramdisk = proptools.BoolPtr(true)