xref: /openbmc/u-boot/tools/dumpimage.h (revision 23ff8633)
1 /*
2  * Based on mkimage.c.
3  *
4  * Written by Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #ifndef _DUMPIMAGE_H_
10 #define _DUMPIMAGE_H_
11 
12 #include "os_support.h"
13 #include <errno.h>
14 #include <fcntl.h>
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <string.h>
18 #include <sys/stat.h>
19 #include <time.h>
20 #include <unistd.h>
21 #include <u-boot/sha1.h>
22 #include "fdt_host.h"
23 #include "imagetool.h"
24 
25 #undef DUMPIMAGE_DEBUG
26 
27 #ifdef DUMPIMAGE_DEBUG
28 #define debug(fmt, args...)	printf(fmt, ##args)
29 #else
30 #define debug(fmt, args...)
31 #endif /* DUMPIMAGE_DEBUG */
32 
33 #endif /* _DUMPIMAGE_H_ */
34