diff options
| author | 2024-10-07 21:54:13 +0000 | |
|---|---|---|
| committer | 2024-10-07 21:54:13 +0000 | |
| commit | dceff5f96e516026c6cdcdd765b693b3629a9a9d (patch) | |
| tree | 9a04382ca4f37030997d511577a20016e1801a46 | |
| parent | 3bbf9276e0a2c4e36d328236a0f49e47648af4b6 (diff) | |
| parent | 3d9b69e99584110d916889b754194e8af5dbae06 (diff) | |
Merge "Use RELEASE_CREATE_ACONFIG_STORAGE_FILE to create aconfig files" into main
| -rw-r--r-- | android/config.go | 4 | ||||
| -rw-r--r-- | filesystem/aconfig_files.go | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/android/config.go b/android/config.go index e51976054..a2bf53336 100644 --- a/android/config.go +++ b/android/config.go @@ -287,6 +287,10 @@ func (c Config) ReleaseReadFromNewStorage() bool { return c.config.productVariables.GetBuildFlagBool("RELEASE_READ_FROM_NEW_STORAGE") } +func (c Config) ReleaseCreateAconfigStorageFile() bool { + return c.config.productVariables.GetBuildFlagBool("RELEASE_CREATE_ACONFIG_STORAGE_FILE") +} + // A DeviceConfig object represents the configuration for a particular device // being built. For now there will only be one of these, but in the future there // may be multiple devices being built. diff --git a/filesystem/aconfig_files.go b/filesystem/aconfig_files.go index 8af2ffaab..608fccdad 100644 --- a/filesystem/aconfig_files.go +++ b/filesystem/aconfig_files.go @@ -76,10 +76,13 @@ func (f *filesystem) buildAconfigFlagsFiles(ctx android.ModuleContext, builder * cmd.ImplicitOutput(outputPath) f.appendToEntry(ctx, outputPath) } - generatePartitionAconfigStorageFile("package_map", "package.map") - generatePartitionAconfigStorageFile("flag_map", "flag.map") - generatePartitionAconfigStorageFile("flag_val", "flag.val") - generatePartitionAconfigStorageFile("flag_info", "flag.info") + + if ctx.Config().ReleaseCreateAconfigStorageFile() { + generatePartitionAconfigStorageFile("package_map", "package.map") + generatePartitionAconfigStorageFile("flag_map", "flag.map") + generatePartitionAconfigStorageFile("flag_val", "flag.val") + generatePartitionAconfigStorageFile("flag_info", "flag.info") + } android.WriteExecutableFileRuleVerbatim(ctx, aconfigFlagsBuilderPath, sb.String()) } |