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