diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2021-11-11 10:14:18 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-11-29 02:51:51 +0300 |
commit | c700f109a312d0c14b5409765013af4b7335d879 (patch) | |
tree | 40ced9e308691e13b50b14acbd1a417b71a98186 /tools/binman | |
parent | 1fb115e4d2a69118388e82af13b1159e102e539b (diff) | |
download | u-boot-c700f109a312d0c14b5409765013af4b7335d879.tar.xz |
binman: Fix extract command for using non-absolute image paths
Otherwise the updated image will end up in the temporary folder that is
purged after completion.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r-- | tools/binman/control.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index 304fc70f56..7da69ba38d 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -355,6 +355,7 @@ def ReplaceEntries(image_fname, input_fname, indir, entry_paths, Returns: List of EntryInfo records that were written """ + image_fname = os.path.abspath(image_fname) image = Image.FromFile(image_fname) # Replace an entry from a single file, as a special case |