[PATCH 2/4] scripts: sign-file: add firmware-signing option
From: AKASHI Takahiro
Date: Thu May 25 2017 - 23:03:40 EST
This new option (-f) allows us to create a signature file (*.p7s) for
firmware binary.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@xxxxxxxxxx>
Cc: Luis R. Rodriguez <mcgrof@xxxxxxxx>
---
scripts/sign-file.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/sign-file.c b/scripts/sign-file.c
index fbd34b8e8f57..211f6531fd7e 100644
--- a/scripts/sign-file.c
+++ b/scripts/sign-file.c
@@ -242,8 +242,11 @@ int main(int argc, char **argv)
#endif
do {
- opt = getopt(argc, argv, "sdpk");
+ opt = getopt(argc, argv, "fsdpk");
switch (opt) {
+ case 'f':
+ use_signed_attrs = 0;
+ sign_only = true; save_sig = true; break;
case 's': raw_sig = true; break;
case 'p': save_sig = true; break;
case 'd': sign_only = true; save_sig = true; break;
--
2.11.1