From ba27322da61cab8b46aab9df3dfcb0cf2b5f5727 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Thu, 12 Dec 2024 19:25:07 +0000 Subject: 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 --- filesystem/filesystem.go | 1 + 1 file changed, 1 insertion(+) (limited to 'filesystem/filesystem.go') diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 4b4dc4054..bff0a1014 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -606,6 +606,7 @@ func (f *filesystem) buildImageUsingBuildImage(ctx android.ModuleContext) androi 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 -- cgit v1.2.3-59-g8ed1b