]>
git.ipfire.org Git - people/ms/u-boot.git/blob - tools/mkimage.h
2 * (C) Copyright 2000-2004
3 * DENX Software Engineering
4 * Wolfgang Denk, wd@denx.de
6 * SPDX-License-Identifier: GPL-2.0+
12 #include "os_support.h"
21 #include <u-boot/sha1.h>
23 #include "imagetool.h"
28 #define debug(fmt,args...) printf (fmt ,##args)
30 #define debug(fmt,args...)
31 #endif /* MKIMAGE_DEBUG */
33 static inline void *map_sysmem(ulong paddr
, unsigned long len
)
35 return (void *)(uintptr_t)paddr
;
38 static inline ulong
map_to_sysmem(void *ptr
)
40 return (ulong
)(uintptr_t)ptr
;
43 #define MKIMAGE_TMPFILE_SUFFIX ".tmp"
44 #define MKIMAGE_MAX_TMPFILE_LEN 256
45 #define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500"
46 #define MKIMAGE_MAX_DTC_CMDLINE_LEN 512
47 #define MKIMAGE_DTC "dtc" /* assume dtc is in $PATH */
49 #endif /* _MKIIMAGE_H_ */