rv1126-uboot/tools
mario.six@gdsys.cc c236ebd2fa tools: Fix return code of fit_image_process_sig()
When signing images, we repeatedly call fit_add_file_data() with
successively increasing size values to include the keys in the DTB.

Unfortunately, if large keys are used (such as 4096 bit RSA keys), this
process fails sometimes, and mkimage needs to be called repeatedly to
integrate the keys into the DTB.

This is because fit_add_file_data actually returns the wrong error
code, and the loop terminates prematurely, instead of trying again with
a larger size value.

This patch corrects the return value and also removes a error message,
which is misleading, since we actually allow the function to fail. A
(hopefully helpful) comment is also added to explain the lack of error
message.

This is probably related to 1152a05 ("tools: Correct error handling in
fit_image_process_hash()") and the corresponding error reported here:

https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html

Signed-off-by: Mario Six <mario.six@gdsys.cc>
2016-07-22 14:46:24 -04:00
..
buildman buildman: allow more incremental building 2016-05-17 09:54:43 -06:00
dtoc dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
easylogo
env tools/env: reuse fw_getenv in fw_printenv function 2016-07-22 14:46:22 -04:00
gdb
kermit
logos
omap
patman tools: patman: Handle missing 'END' in non-last commit of a series 2016-07-11 14:06:44 -06:00
scripts tools: fix define2mk.sed to not add quotes around negative integers 2016-06-13 07:46:29 +09:00
tbot test, tools: update tbot documentation 2016-05-13 11:25:59 -04:00
.gitignore tools: Add entry for generated tools/bin2header to tools/.gitignore 2016-05-27 15:47:56 -04:00
Makefile Only build the libfdt python module if 'swig' is available 2016-07-14 20:40:24 -06:00
aisimage.c
aisimage.h
atmel_pmecc_params.c Change my mailaddress 2016-05-02 18:37:09 -04:00
atmelimage.c Change my mailaddress 2016-05-02 18:37:09 -04:00
bin2header.c cmd: Fix license command 2016-03-22 12:16:13 -04:00
bmp_logo.c
default_image.c Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
dumpimage.c
dumpimage.h
envcrc.c
fdt_host.h
fdtgrep.c
fit_check_sign.c
fit_common.c
fit_common.h
fit_image.c tools: Add an error code when fit_handle_file() fails 2016-07-14 18:22:36 -04:00
fit_info.c
gen_eth_addr.c
genboardscfg.py tools/genboardscfg.py: remove bogus import subprocess 2016-05-27 15:47:56 -04:00
getline.c
getline.h
gpheader.h
gpimage-common.c
gpimage.c
ifdtool.c
ifdtool.h
image-host.c tools: Fix return code of fit_image_process_sig() 2016-07-22 14:46:24 -04:00
imagetool.c Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
imagetool.h Respect SOURCE_DATE_EPOCH when building FIT images. 2016-06-24 17:23:10 -04:00
img2brec.sh
img2srec.c
imximage.c imx: tools: imximage: fix CLR bit command 2016-05-17 17:52:19 +02:00
imximage.h
jtagconsole
kwbimage.c
kwbimage.h
kwboot.c tools: kwboot: Add xmodem timeout option 2016-03-24 10:08:49 +01:00
lpc32xximage.c
microcode-tool
microcode-tool.py
mingw_support.c
mingw_support.h
mkenvimage.c
mkexynosspl.c
mkimage.c mkimage: fix missing break for -p switch 2016-07-14 18:22:44 -04:00
mkimage.h
mksunxiboot.c
moveconfig.py tools: moveconfig: show suspicious boards with possible misconversion 2016-06-22 09:23:00 +09:00
mxsboot.c
mxsimage.c
mxsimage.h
ncb.c
netconsole
omapimage.c
omapimage.h
os_support.c
os_support.h
pbl_crc32.c
pbl_crc32.h
pblimage.c
pblimage.h
proftool.c
relocate-rela.c
rkcommon.c
rkcommon.h
rkimage.c rockchip: Check image name for the rksd image 2016-05-27 10:23:07 -06:00
rkmux.py
rksd.c
rkspi.c
socfpgaimage.c
ublimage.c
ublimage.h
ubsha1.c
xway-swap-bytes.c
zynqimage.c
zynqmpimage.c tools: zynqmpimage: Add Xilinx ZynqMP boot header generation 2016-05-24 11:15:01 +02:00