Pass build_datetime_file to soong partitions
The build_datetime_file can be used to create hermetic image files, and
will be used to validate mk->soong partition migration.
Bug: 383357338
Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
Setup
- export BUILD_DATETIME=10
- commented out installed_*_notice_xml_gz in build/make/core/Makefile
Test: verified that the following .img files are bit identical
odm,system_dlkm,vendor_dlkm,odm_dlkm
Change-Id: I254cd3f1afbd26439dd70505c7135d834ec234bc
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 4b4dc40..bff0a10 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -606,6 +606,7 @@
Input(propFile).
Implicits(toolDeps).
Implicit(fec).
+ FlagWithArg("--build_datetime_file ", ctx.Config().Getenv("BUILD_DATETIME_FILE")).
Output(output).
Text(rootDir.String()) // directory where to find fs_config_files|dirs