mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 03:58:18 -04:00
mkimage: Fix variable length header support
Support for variable length images like AIS image was introduced in commit f0662105b674a3874227316abf8536bebc9b5995. 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:
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) && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user