blob: e31d163292eebea3f62a3953a24355e4f3cd58f3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Guilherme Maciel Ferreira51553812013-12-01 12:43:11 -07002/*
3 * Based on mkimage.c.
4 *
5 * Written by Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Guilherme Maciel Ferreira51553812013-12-01 12:43:11 -07006 */
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 Hofsteebfe88fe2014-06-12 22:27:12 +020020#include <u-boot/sha1.h>
Guilherme Maciel Ferreira51553812013-12-01 12:43:11 -070021#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_ */