summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-06 14:12:24 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-06 14:12:24 -0800
commit8915bf61970400e5f2e1aa978fa40fa370cfe8c5 (patch)
tree85272a5cafd3ed4322fef8be1fcb9ac7a59e0a5c /filesystem/filesystem.go
parentdaf737740edd2d2e7907321a41b995d8d9d3c16f (diff)
parenta0ddc511d9b3b2d4773214878c57629d1a1511eb (diff)
Merge "Use fixed timestamp in img files using an environment variable" into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 43fd390ce..6dfbfd1be 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -751,7 +751,10 @@ func (f *filesystem) buildPropFile(ctx android.ModuleContext) (android.Path, and
}
if timestamp := proptools.String(f.properties.Fake_timestamp); timestamp != "" {
addStr("timestamp", timestamp)
+ } else if ctx.Config().Getenv("USE_FIXED_TIMESTAMP_IMG_FILES") == "true" {
+ addStr("use_fixed_timestamp", "true")
}
+
if uuid := proptools.String(f.properties.Uuid); uuid != "" {
addStr("uuid", uuid)
addStr("hash_seed", uuid)