mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
mkimage: Fix variable length header support
Support for variable length images like AIS image was introduced
in commit f0662105b6
. A parameter
"-s" was also introduced to prohibit copying of the image file
automatically in the main program. However, this parameter
was implemented incorrectly and the image file was copied
nevertheless.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
committed by
Albert ARIBAUD
parent
3d2c8e6c7f
commit
d1be8f922e
@@ -383,9 +383,9 @@ NXTARG: ;
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (!params.skipcpy &&
|
||||
(params.type == IH_TYPE_MULTI ||
|
||||
params.type == IH_TYPE_SCRIPT)) {
|
||||
if (!params.skipcpy) {
|
||||
if (params.type == IH_TYPE_MULTI ||
|
||||
params.type == IH_TYPE_SCRIPT) {
|
||||
char *file = params.datafile;
|
||||
uint32_t size;
|
||||
|
||||
@@ -443,6 +443,7 @@ NXTARG: ;
|
||||
} else {
|
||||
copy_file (ifd, params.datafile, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* We're a bit of paranoid */
|
||||
#if defined(_POSIX_SYNCHRONIZED_IO) && \
|
||||
|
Reference in New Issue
Block a user