forked from len0rd/rockbox
sbtools: move sb reading from sbtoelf.c to sb.c with a proper interface, fix sb production bug, fix ugly code, add sb dump code and sbtoelf loopback facility
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30881 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
591ec0349b
commit
e36471df9c
7 changed files with 750 additions and 645 deletions
|
|
@ -436,8 +436,14 @@ int main(int argc, char **argv)
|
|||
sb_file->real_key = &real_key.u.key;
|
||||
if(crypto_iv.method == CRYPTO_KEY)
|
||||
sb_file->crypto_iv = &crypto_iv.u.key;
|
||||
|
||||
sb_produce_file(sb_file, output_filename);
|
||||
|
||||
/* fill with default parameters since there is no command file support for them */
|
||||
sb_file->drive_tag = 0;
|
||||
sb_file->first_boot_sec_id = sb_file->sections[0].identifier;
|
||||
sb_file->flags = 0;
|
||||
sb_file->minor_version = 1;
|
||||
|
||||
sb_write_file(sb_file, output_filename);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue