]> git.sur5r.net Git - u-boot/blobdiff - tools/mkimage.h
Remove legacy NAND and disk on chip references from boards.
[u-boot] / tools / mkimage.h
index 41cd156fa25844cabae31f5bea2217a4cde93e03..c8df6e1f64f95282fb35207090b542816ff54f9e 100644 (file)
@@ -20,6 +20,7 @@
  * MA 02111-1307 USA
  */
 
+#include "os_support.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #ifndef __WIN32__
 #include <netinet/in.h>                /* for host / network byte order conversions    */
 #endif
+#ifdef __MINGW32__
+#include <stdint.h>
+#else
 #include <sys/mman.h>
+#endif
 #include <sys/stat.h>
 #include <time.h>
 #include <unistd.h>
 #define debug(fmt,args...)
 #endif /* MKIMAGE_DEBUG */
 
+#define MKIMAGE_TMPFILE_SUFFIX         ".tmp"
+#define MKIMAGE_MAX_TMPFILE_LEN                256
+#define MKIMAGE_DEFAULT_DTC_OPTIONS    "-I dts -O dtb -p 500"
+#define MKIMAGE_MAX_DTC_CMDLINE_LEN    512
+#define MKIMAGE_DTC                    "dtc"   /* assume dtc is in $PATH */
+
 #if defined(__BEOS__) || defined(__NetBSD__) || defined(__APPLE__)
 #include <inttypes.h>
 #endif