Blame view
tools/mkimage.h
965 Bytes
83d290c56
|
1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
b97a2a0a2
|
2 3 4 5 |
/* * (C) Copyright 2000-2004 * DENX Software Engineering * Wolfgang Denk, wd@denx.de |
b97a2a0a2
|
6 |
*/ |
89a4d6b12
|
7 8 |
#ifndef _MKIIMAGE_H_ #define _MKIIMAGE_H_ |
2f8d396b9
|
9 |
#include "os_support.h" |
b97a2a0a2
|
10 11 12 13 14 |
#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |
b97a2a0a2
|
15 16 17 |
#include <sys/stat.h> #include <time.h> #include <unistd.h> |
2b9912e6a
|
18 |
#include <u-boot/sha1.h> |
8cf30809a
|
19 |
#include "fdt_host.h" |
f86ed6a8d
|
20 |
#include "imagetool.h" |
b97a2a0a2
|
21 |
|
89a4d6b12
|
22 |
#undef MKIMAGE_DEBUG |
5dfb52138
|
23 24 25 26 27 28 |
#ifdef MKIMAGE_DEBUG #define debug(fmt,args...) printf (fmt ,##args) #else #define debug(fmt,args...) #endif /* MKIMAGE_DEBUG */ |
2434c66da
|
29 30 31 32 33 34 35 36 37 |
static inline void *map_sysmem(ulong paddr, unsigned long len) { return (void *)(uintptr_t)paddr; } static inline ulong map_to_sysmem(void *ptr) { return (ulong)(uintptr_t)ptr; } |
9d25438fe
|
38 39 40 41 |
#define MKIMAGE_TMPFILE_SUFFIX ".tmp" #define MKIMAGE_MAX_TMPFILE_LEN 256 #define MKIMAGE_DEFAULT_DTC_OPTIONS "-I dts -O dtb -p 500" #define MKIMAGE_MAX_DTC_CMDLINE_LEN 512 |
89a4d6b12
|
42 |
|
89a4d6b12
|
43 |
#endif /* _MKIIMAGE_H_ */ |