summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-02-17 16:17:42 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-02-18 13:40:25 +0100
commitac9304299de66eaa8d534249b800c0c79501c676 (patch)
treea5e5daed354b24ede82a996d70c5b0ff219cd035 /utils/imxtools/sbtools
parentff38f91a276857b5a0ac2f829b0c5f638a675c11 (diff)
downloadrockbox-ac9304299de66eaa8d534249b800c0c79501c676.tar.gz
rockbox-ac9304299de66eaa8d534249b800c0c79501c676.tar.bz2
rockbox-ac9304299de66eaa8d534249b800c0c79501c676.zip
sbtools/elftosb1: implement key file loading
Change-Id: I2273b8d6314250620611ec50d159237edc6d76c2
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/elftosb1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/elftosb1.c b/utils/imxtools/sbtools/elftosb1.c
index 39ad4e36c4..02e986e1cd 100644
--- a/utils/imxtools/sbtools/elftosb1.c
+++ b/utils/imxtools/sbtools/elftosb1.c
@@ -466,6 +466,13 @@ CMD_FN(cmd_component)
return 0;
}
+CMD_FN(cmd_keyfile)
+{
+ if(!add_keys_from_file(args[0].str))
+ bug("Cannot add keys from file '%s'\n", args[0].str);
+ return 0;
+}
+
#define CMD(name,fn,nr_args,...) {name,nr_args,{__VA_ARGS__},fn},
struct cmd_entry_t g_cmds[] =
{
@@ -501,6 +508,7 @@ struct cmd_entry_t g_cmds[] =
CMD("-product", cmd_product, 1, ARG_STR)
CMD("-v", cmd_component, 1, ARG_STR)
CMD("-component", cmd_component, 1, ARG_STR)
+ CMD("-k", cmd_keyfile, 1, ARG_STR)
};
#undef CMD