diff options
author | wdenk <wdenk> | 2003-10-08 22:14:02 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-10-08 22:14:02 +0000 |
commit | ef1464cc01cf9dcab52396283bf597e609caa450 (patch) | |
tree | 8425585ca09e0fb257c0648c02a7bc7848616807 /tools/mkimage.c | |
parent | d9a405aaf62cc8204f7300eb94713b39df793f04 (diff) | |
download | bootable_bootloader_goldelico_gta04-ef1464cc01cf9dcab52396283bf597e609caa450.zip bootable_bootloader_goldelico_gta04-ef1464cc01cf9dcab52396283bf597e609caa450.tar.gz bootable_bootloader_goldelico_gta04-ef1464cc01cf9dcab52396283bf597e609caa450.tar.bz2 |
* Patch by Anders Larsen, 18 Sep 2003:
allow mkimage to build and run on Cygwin-hosted systems
* Patch by Frank Müller, 18 Sep 2003:
use bi_intfreq instead of bi_busfreq to compute fec_mii_speed in
cpu/mpc8xx/fec.c
* Patch by Pantelis Antoniou, 16 Sep 2003:
add tool to compute fileds in the PLPRCR register for MPC86x
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r-- | tools/mkimage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 148ee8d..0e83546 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -268,7 +268,7 @@ NXTARG: ; imagefile = *argv; if (lflag) { - ifd = open(imagefile, O_RDONLY); + ifd = open(imagefile, O_RDONLY|O_BINARY); } else { ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666); } @@ -502,7 +502,7 @@ copy_file (int ifd, const char *datafile, int pad) fprintf (stderr, "Adding Image %s\n", datafile); } - if ((dfd = open(datafile, O_RDONLY)) < 0) { + if ((dfd = open(datafile, O_RDONLY|O_BINARY)) < 0) { fprintf (stderr, "%s: Can't open %s: %s\n", cmdname, datafile, strerror(errno)); exit (EXIT_FAILURE); |