dumpimage.h 635 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef _DUMPIMAGE_H_
  9. #define _DUMPIMAGE_H_
  10. #include "os_support.h"
  11. #include <errno.h>
  12. #include <fcntl.h>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <string.h>
  16. #include <sys/stat.h>
  17. #include <time.h>
  18. #include <unistd.h>
  19. #include <u-boot/sha1.h>
  20. #include "fdt_host.h"
  21. #include "imagetool.h"
  22. #undef DUMPIMAGE_DEBUG
  23. #ifdef DUMPIMAGE_DEBUG
  24. #define debug(fmt, args...) printf(fmt, ##args)
  25. #else
  26. #define debug(fmt, args...)
  27. #endif /* DUMPIMAGE_DEBUG */
  28. #endif /* _DUMPIMAGE_H_ */