summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-02-12 15:09:41 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-12 15:09:41 -0800
commitb5525e044f5df1e6da0ce8b56186d8c17cc40124 (patch)
treefd837a4e98247b5f5664ca4e01a6136675a225a8 /filesystem/filesystem.go
parent02c56e90397683db8b4fb850e4b6ef211ae9a7dc (diff)
parentd71af183064d45dbeccf09553d3876c682dcc843 (diff)
Merge "Package erofs compress hints txt in target_files.zip" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 84daab037..c3c06bd58 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -413,6 +413,10 @@ type FilesystemInfo struct {
// Installed files list
InstalledFiles InstalledFilesStruct
+
+ // Path to compress hints file for erofs filesystems
+ // This will be nil for other fileystems like ext4
+ ErofsCompressHints android.Path
}
// FullInstallPathInfo contains information about the "full install" paths of all the files
@@ -634,6 +638,11 @@ func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
installedFileTxt, installedFileJson := buildInstalledFiles(ctx, partitionName, rootDir, f.output)
+ var erofsCompressHints android.Path
+ if f.properties.Erofs.Compress_hints != nil {
+ erofsCompressHints = android.PathForModuleSrc(ctx, *f.properties.Erofs.Compress_hints)
+ }
+
fsInfo := FilesystemInfo{
Output: f.output,
OutputHermetic: outputHermetic,
@@ -650,6 +659,7 @@ func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Txt: installedFileTxt,
Json: installedFileJson,
},
+ ErofsCompressHints: erofsCompressHints,
}
android.SetProvider(ctx, FilesystemProvider, fsInfo)