From 165f0b00cdd2f763c1d478c2f58c535fc19b13bd Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 1 Nov 2020 11:53:39 -1000 Subject: build: store SOURCE_DATE_EPOCH in JSON info files The source date epoch is the only reproducible date close to the actual build date. It can be used for tooling like the firmware wizard to show the image age. Signed-off-by: Paul Spooren --- scripts/json_add_image_info.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/json_add_image_info.py') diff --git a/scripts/json_add_image_info.py b/scripts/json_add_image_info.py index 768bb10254..ac907c777c 100755 --- a/scripts/json_add_image_info.py +++ b/scripts/json_add_image_info.py @@ -44,6 +44,7 @@ image_info = { "target": "{}/{}".format(getenv("TARGET"), getenv("SUBTARGET")), "version_code": getenv("VERSION_CODE"), "version_number": getenv("VERSION_NUMBER"), + "source_date_epoch": getenv("SOURCE_DATE_EPOCH"), "profiles": { device_id: { "image_prefix": getenv("IMAGE_PREFIX"), -- cgit v1.2.3