1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2000-2004
4 * DENX Software Engineering
5 * Wolfgang Denk, wd@denx.de
11 #include "os_support.h"
20 #include <u-boot/sha1.h>
22 #include "imagetool.h"
27 #define debug(fmt,args...) printf (fmt ,##args)
29 #define debug(fmt,args...)
30 #endif /* MKIMAGE_DEBUG */
32 #define log_debug(fmt, args...) debug(fmt, ##args)
34 static inline void *map_sysmem(ulong paddr, unsigned long len)
36 return (void *)(uintptr_t)paddr;
39 static inline ulong map_to_sysmem(void *ptr)
41 return (ulong)(uintptr_t)ptr;
44 #define ARCH_DMA_MINALIGN 1
45 #define DEFINE_ALIGN_BUFFER(type, name, size, alugn) type name[size]
47 #define MKIMAGE_TMPFILE_SUFFIX ".tmp"
48 #define MKIMAGE_MAX_TMPFILE_LEN 256
49 #define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
50 #define MKIMAGE_MAX_DTC_CMDLINE_LEN 2 * MKIMAGE_MAX_TMPFILE_LEN + 35
52 #endif /* _MKIIMAGE_H_ */