mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
binman: Add an 'extract' command
It is useful to be able to extract all binaries from the image, or a subset of them. Add a new 'extract' command to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -71,6 +71,19 @@ controlled by a description in the board device tree.'''
|
||||
list_parser.add_argument('paths', type=str, nargs='*',
|
||||
help='Paths within file to list (wildcard)')
|
||||
|
||||
extract_parser = subparsers.add_parser('extract',
|
||||
help='Extract files from an image')
|
||||
extract_parser.add_argument('-i', '--image', type=str, required=True,
|
||||
help='Image filename to extract')
|
||||
extract_parser.add_argument('-f', '--filename', type=str,
|
||||
help='Output filename to write to')
|
||||
extract_parser.add_argument('-O', '--outdir', type=str, default='',
|
||||
help='Path to directory to use for output files')
|
||||
extract_parser.add_argument('paths', type=str, nargs='*',
|
||||
help='Paths within file to extract (wildcard)')
|
||||
extract_parser.add_argument('-U', '--uncompressed', action='store_true',
|
||||
help='Output raw uncompressed data for compressed entries')
|
||||
|
||||
test_parser = subparsers.add_parser('test', help='Run tests')
|
||||
test_parser.add_argument('-P', '--processes', type=int,
|
||||
help='set number of processes to use for running tests')
|
||||
|
Reference in New Issue
Block a user