summaryrefslogtreecommitdiff
path: root/tools/image-host.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-07-15 03:10:34 +0300
committerTom Rini <trini@konsulko.com>2021-07-15 03:10:34 +0300
commitc11f5abce84f630c92304683d5bde3204c5612c4 (patch)
tree29f4a7db27669fac1ea7b7eb8821b5440b09af0d /tools/image-host.c
parenteae8c7c33829c3bd25a792600c1fe6ed842a1ddc (diff)
parent963fde31559f50ceb4f5965f00d79f8747a9d217 (diff)
downloadu-boot-c11f5abce84f630c92304683d5bde3204c5612c4.tar.xz
Merge branch '2021-07-14-build-and-host-updates'
- Resync Kbuild with the v4.20 Linux Kernel release - Update checkpatch.pl - Assorted other tooling updates
Diffstat (limited to 'tools/image-host.c')
-rw-r--r--tools/image-host.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index 270d36fe45..73095461a7 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -132,8 +132,10 @@ static int fit_image_write_sig(void *fit, int noffset, uint8_t *value,
if (!ret) {
time_t timestamp = imagetool_get_source_date(cmdname,
time(NULL));
+ uint32_t t = cpu_to_uimage(timestamp);
- ret = fit_set_timestamp(fit, noffset, timestamp);
+ ret = fdt_setprop(fit, noffset, FIT_TIMESTAMP_PROP, &t,
+ sizeof(uint32_t));
}
if (region_prop && !ret) {
uint32_t strdata[2];