]> code.ossystems Code Review - openembedded-core.git/commit
u-boot-tools: fix a mkimage signature issue
authorMing Liu <liu.ming50@gmail.com>
Mon, 21 Jun 2021 11:16:47 +0000 (13:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Jun 2021 14:17:01 +0000 (15:17 +0100)
commit8628a276a01e994e84d3c6ac8397860e8e2bbb5b
tree145501898e0bd35179561c68786b8eddf1197c6c
parentd5d0f173be8cc27a0d5c475754483e76185b46b8
u-boot-tools: fix a mkimage signature issue

A following error was observed:
| Can't write signature for 'signature@1' signature node in 'conf@imx6ull-colibri-wifi-eval-v3.dtb' conf node: <unknown error>
| uboot-mkimage Can't add hashes to FIT blob: -1

This is caused by a wrong return value being used in uboot source.

The return value '-ENOSPC' of fit_set_timestamp function does not match
the caller fit_image_write_sig's expection which is '-FDT_ERR_NOSPACE'.

Fix it by not calling fit_set_timestamp, but call fdt_setprop instead.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/files/0001-tools-image-host-fix-wrong-return-value.patch [new file with mode: 0644]
meta/recipes-bsp/u-boot/u-boot-tools_2021.04.bb