summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2025-03-07 00:05:49 +0000
committer Jihoon Kang <jihoonkang@google.com> 2025-03-07 01:37:42 +0000
commit52e53c643ee30aab988b394a16413aa01218a371 (patch)
tree9f3ff289cda68636cb31b02e612f90833a904a0d /filesystem/filesystem.go
parent13342315b6256a1f2e7a1fe634244940567849ca (diff)
Modify namings of disted installed files
To match the names to those in soong+make build. Test: m droid dist --soong-only && ls -l out/dist Bug: 395162005 Change-Id: I196fa46de628a3dded9ba9f804337c19ddea119b
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 8b3b51e89..6eada58ea 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 {