summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-06 19:14:15 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-06 19:14:15 -0800
commitd47793ff0c48a71ac6da6209e5bbce9b37d3db06 (patch)
treeb82516e04d5077b216153ffe15b36fa9d199416c /filesystem/filesystem.go
parent2e704899b085c22a4ef203f0a743e3c380320a68 (diff)
parent52e53c643ee30aab988b394a16413aa01218a371 (diff)
Merge "Modify namings of disted installed files" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 79db988a0..5b53c06cf 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -651,11 +651,16 @@ func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
fileListFile := android.PathForModuleOut(ctx, "fileList")
android.WriteFileRule(ctx, fileListFile, f.installedFilesList())
- partitionName := f.partitionName()
- if partitionName == "system" {
- partitionName = ""
+ var partitionNameForInstalledFiles string
+ switch f.partitionName() {
+ case "system":
+ partitionNameForInstalledFiles = ""
+ case "vendor_ramdisk":
+ partitionNameForInstalledFiles = "vendor-ramdisk"
+ default:
+ partitionNameForInstalledFiles = f.partitionName()
}
- installedFileTxt, installedFileJson := buildInstalledFiles(ctx, partitionName, rootDir, f.output)
+ installedFileTxt, installedFileJson := buildInstalledFiles(ctx, partitionNameForInstalledFiles, rootDir, f.output)
var erofsCompressHints android.Path
if f.properties.Erofs.Compress_hints != nil {