Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
27e16d85
Commit
27e16d85
authored
Feb 13, 2017
by
davidcunado-arm
Committed by
GitHub
Feb 13, 2017
Browse files
Merge pull request #828 from masahir0y/fiptool
Fiptool cleanup
parents
fd6d90d8
9dd5edb8
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/fiptool/fiptool.c
View file @
27e16d85
...
...
@@ -52,8 +52,6 @@
#define OPT_PLAT_TOC_FLAGS 1
#define OPT_ALIGN 2
static
image_desc_t
*
lookup_image_desc_from_uuid
(
const
uuid_t
*
uuid
);
static
image_t
*
lookup_image_from_uuid
(
const
uuid_t
*
uuid
);
static
int
info_cmd
(
int
argc
,
char
*
argv
[]);
static
void
info_usage
(
void
);
static
int
create_cmd
(
int
argc
,
char
*
argv
[]);
...
...
@@ -822,11 +820,9 @@ static void create_usage(void)
printf
(
"
\n
"
);
printf
(
"Options:
\n
"
);
printf
(
" --align <value>
\t\t
Each image is aligned to <value> (default: 1).
\n
"
);
printf
(
" --blob uuid=...,file=...
\t
Add an image with the given UUID "
"pointed to by file.
\n
"
);
printf
(
" --plat-toc-flags <value>
\t
16-bit platform specific flag field "
"occupying bits 32-47 in 64-bit ToC header.
\n
"
);
fputc
(
'\n'
,
stderr
);
printf
(
" --blob uuid=...,file=...
\t
Add an image with the given UUID pointed to by file.
\n
"
);
printf
(
" --plat-toc-flags <value>
\t
16-bit platform specific flag field occupying bits 32-47 in 64-bit ToC header.
\n
"
);
printf
(
"
\n
"
);
printf
(
"Specific images are packed with the following options:
\n
"
);
for
(;
toc_entry
->
cmdline_name
!=
NULL
;
toc_entry
++
)
printf
(
" --%-16s FILENAME
\t
%s
\n
"
,
toc_entry
->
cmdline_name
,
...
...
@@ -938,12 +934,10 @@ static void update_usage(void)
printf
(
"
\n
"
);
printf
(
"Options:
\n
"
);
printf
(
" --align <value>
\t\t
Each image is aligned to <value> (default: 1).
\n
"
);
printf
(
" --blob uuid=...,file=...
\t
Add or update an image "
"with the given UUID pointed to by file.
\n
"
);
printf
(
" --blob uuid=...,file=...
\t
Add or update an image with the given UUID pointed to by file.
\n
"
);
printf
(
" --out FIP_FILENAME
\t\t
Set an alternative output FIP file.
\n
"
);
printf
(
" --plat-toc-flags <value>
\t
16-bit platform specific flag field "
"occupying bits 32-47 in 64-bit ToC header.
\n
"
);
fputc
(
'\n'
,
stderr
);
printf
(
" --plat-toc-flags <value>
\t
16-bit platform specific flag field occupying bits 32-47 in 64-bit ToC header.
\n
"
);
printf
(
"
\n
"
);
printf
(
"Specific images are packed with the following options:
\n
"
);
for
(;
toc_entry
->
cmdline_name
!=
NULL
;
toc_entry
++
)
printf
(
" --%-16s FILENAME
\t
%s
\n
"
,
toc_entry
->
cmdline_name
,
...
...
@@ -1076,17 +1070,15 @@ static void unpack_usage(void)
printf
(
"fiptool unpack [opts] FIP_FILENAME
\n
"
);
printf
(
"
\n
"
);
printf
(
"Options:
\n
"
);
printf
(
" --blob uuid=...,file=...
\t
Unpack an image with the given UUID "
"to file.
\n
"
);
printf
(
" --force
\t\t\t
If the output file already exists, use --force to "
"overwrite it.
\n
"
);
printf
(
" --blob uuid=...,file=...
\t
Unpack an image with the given UUID to file.
\n
"
);
printf
(
" --force
\t\t\t
If the output file already exists, use --force to overwrite it.
\n
"
);
printf
(
" --out path
\t\t\t
Set the output directory path.
\n
"
);
fputc
(
'\n'
,
stderr
);
printf
(
"
\n
"
);
printf
(
"Specific images are unpacked with the following options:
\n
"
);
for
(;
toc_entry
->
cmdline_name
!=
NULL
;
toc_entry
++
)
printf
(
" --%-16s FILENAME
\t
%s
\n
"
,
toc_entry
->
cmdline_name
,
toc_entry
->
name
);
fputc
(
'\n'
,
stderr
);
printf
(
"
\n
"
);
printf
(
"If no options are provided, all images will be unpacked.
\n
"
);
exit
(
1
);
}
...
...
@@ -1207,10 +1199,9 @@ static void remove_usage(void)
printf
(
"Options:
\n
"
);
printf
(
" --align <value>
\t
Each image is aligned to <value> (default: 1).
\n
"
);
printf
(
" --blob uuid=...
\t
Remove an image with the given UUID.
\n
"
);
printf
(
" --force
\t\t
If the output FIP file already exists, use --force to "
"overwrite it.
\n
"
);
printf
(
" --force
\t\t
If the output FIP file already exists, use --force to overwrite it.
\n
"
);
printf
(
" --out FIP_FILENAME
\t
Set an alternative output FIP file.
\n
"
);
fputc
(
'\n'
,
stderr
);
printf
(
"
\n
"
);
printf
(
"Specific images are removed with the following options:
\n
"
);
for
(;
toc_entry
->
cmdline_name
!=
NULL
;
toc_entry
++
)
printf
(
" --%-16s
\t
%s
\n
"
,
toc_entry
->
cmdline_name
,
...
...
@@ -1258,7 +1249,7 @@ static void usage(void)
printf
(
"usage: fiptool [--verbose] <command> [<args>]
\n
"
);
printf
(
"Global options supported:
\n
"
);
printf
(
" --verbose
\t
Enable verbose output for all commands.
\n
"
);
fputc
(
'\n'
,
stderr
);
printf
(
"
\n
"
);
printf
(
"Commands supported:
\n
"
);
printf
(
" info
\t\t
List images contained in FIP.
\n
"
);
printf
(
" create
\t
Create a new FIP with the given images.
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment