dumpimage.h 635 B

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