summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorIvan Mikhaylov <fr0st61te@gmail.com>2023-03-08 01:13:39 +0000
committerSimon Glass <sjg@chromium.org>2023-03-14 16:08:51 -0600
commit4023dc9c95ccb5bcb3719c1c10e3d4dce967e0a2 (patch)
treefb4e2966687221cd1cba730be6446eb0e32bf6ed /common/main.c
parent0f40e23fd2282809f62d2be6ea4eb8c1d995a09b (diff)
binman: add sign option for binman
Introduce proof of concept for binman's new option which provides sign and replace FIT containers in binary images. Usage as example: from: mkimage -G privateky -r -o sha256,rsa4096 -F fit binman replace -i flash.bin -f fit.fit fit to: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fit fit and to this one if it's need to be extracted, signed with key and put it back in image: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 fit Signed-off-by: Ivan Mikhaylov <fr0st61te@gmail.com>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 682f3359ea3..7c70de2e59a 100644
--- a/common/main.c
+++ b/common/main.c
@@ -13,6 +13,7 @@
#include <command.h>
#include <console.h>
#include <env.h>
+#include <fdtdec.h>
#include <init.h>
#include <net.h>
#include <version_string.h>