Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Guilherme Maciel Ferreira | a804b5c | 2013-12-01 12:43:11 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Based on mkimage.c. |
| 4 | * |
| 5 | * Written by Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> |
Guilherme Maciel Ferreira | a804b5c | 2013-12-01 12:43:11 -0700 | [diff] [blame] | 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> |
Jeroen Hofstee | 2b9912e | 2014-06-12 22:27:12 +0200 | [diff] [blame] | 20 | #include <u-boot/sha1.h> |
Guilherme Maciel Ferreira | a804b5c | 2013-12-01 12:43:11 -0700 | [diff] [blame] | 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_ */ |