summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-09-16 11:39:10 +0000
committerwdenk <wdenk>2003-09-16 11:39:10 +0000
commitacf98e7f3062921547516d87611f2ae9824808b9 (patch)
tree863fc87787822526f6dc29b7d46d28093420d5d2 /tools
parentb56ddc636ddcaacf7fa497819cc1b9517d610eee (diff)
Make IPB clock on MGT5100/MPC5200 configurable in board config file;
go back to 66 MHz for stability
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 9de02248877..241853a01f4 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2000-2002
+ * (C) Copyright 2000-2003
* DENX Software Engineering
* Wolfgang Denk, wd@denx.de
* All rights reserved.
@@ -39,6 +39,10 @@ typedef unsigned int uint32_t;
#define htonl(a) SWAP_LONG(a)
#endif /* __WIN32__ */
+#ifndef O_BINARY /* should be define'd on __WIN32__ */
+#define O_BINARY 0
+#endif
+
#include <image.h>
extern int errno;
@@ -265,11 +269,7 @@ NXTARG: ;
if (lflag) {
ifd = open(imagefile, O_RDONLY);
} else {
-#ifdef __WIN32__
ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666);
-#else
- ifd = open(imagefile, O_RDWR|O_CREAT|O_TRUNC, 0666);
-#endif
}
if (ifd < 0) {