]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mkimage: Add -K to write public keys to an FDT blob
authorSimon Glass <sjg@chromium.org>
Thu, 13 Jun 2013 22:10:04 +0000 (15:10 -0700)
committerTom Rini <trini@ti.com>
Wed, 26 Jun 2013 14:18:56 +0000 (10:18 -0400)
commite29495d37f7c0533d365004ca475218250351c93
tree1ce4db084dea8f629a934abef35140cd79e2b127
parent80e4df8ac661ada5308f3bffebe4e6fae1f8e990
mkimage: Add -K to write public keys to an FDT blob

FIT image verification requires public keys. Add a convenient option to
mkimage to write the public keys to an FDT blob when it uses then for
signing an image. This allows us to use:

   mkimage -f test.its -K dest.dtb -k keys test.fit

and have the signatures written to test.fit and the corresponding public
keys written to dest.dtb. Then dest.dtb can be used as the control FDT
for U-Boot (CONFIG_OF_CONTROL), thus providing U-Boot with access to the
public keys it needs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
doc/mkimage.1
tools/fit_image.c
tools/mkimage.c
tools/mkimage.h