mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 06:21:15 +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);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!params.skipcpy &&
|
if (!params.skipcpy) {
|
||||||
(params.type == IH_TYPE_MULTI ||
|
if (params.type == IH_TYPE_MULTI ||
|
||||||
params.type == IH_TYPE_SCRIPT)) {
|
params.type == IH_TYPE_SCRIPT) {
|
||||||
char *file = params.datafile;
|
char *file = params.datafile;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
|
||||||
@@ -443,6 +443,7 @@ NXTARG: ;
|
|||||||
} else {
|
} else {
|
||||||
copy_file (ifd, params.datafile, 0);
|
copy_file (ifd, params.datafile, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* We're a bit of paranoid */
|
/* We're a bit of paranoid */
|
||||||
#if defined(_POSIX_SYNCHRONIZED_IO) && \
|
#if defined(_POSIX_SYNCHRONIZED_IO) && \
|
||||||
|
Reference in New Issue
Block a user