]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mkimage.h
add 'unzip' command to u-boot commandline
[karo-tx-uboot.git] / tools / mkimage.h
index 8b05bb17c8167171019d3df4a4f7d39b9ca40665..a2d5248943d578c809e200f01c90591753a068ea 100644 (file)
 #include <sys/stat.h>
 #include <time.h>
 #include <unistd.h>
+#include <sha1.h>
+#include "fdt_host.h"
+
+#define MKIMAGE_DEBUG
+
+#ifdef MKIMAGE_DEBUG
+#define debug(fmt,args...)     printf (fmt ,##args)
+#else
+#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>