Blame view
tools/mkimage.h
1017 Bytes
b97a2a0a2
|
1 2 3 4 |
/* * (C) Copyright 2000-2004 * DENX Software Engineering * Wolfgang Denk, wd@denx.de |
b97a2a0a2
|
5 |
* |
1a4596601
|
6 |
* SPDX-License-Identifier: GPL-2.0+ |
b97a2a0a2
|
7 |
*/ |
89a4d6b12
|
8 9 |
#ifndef _MKIIMAGE_H_ #define _MKIIMAGE_H_ |
2f8d396b9
|
10 |
#include "os_support.h" |
b97a2a0a2
|
11 12 13 14 15 |
#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> |
b97a2a0a2
|
16 17 18 |
#include <sys/stat.h> #include <time.h> #include <unistd.h> |
a6e530f00
|
19 |
#include <sha1.h> |
8cf30809a
|
20 |
#include "fdt_host.h" |
f86ed6a8d
|
21 |
#include "imagetool.h" |
b97a2a0a2
|
22 |
|
89a4d6b12
|
23 |
#undef MKIMAGE_DEBUG |
5dfb52138
|
24 25 26 27 28 29 |
#ifdef MKIMAGE_DEBUG #define debug(fmt,args...) printf (fmt ,##args) #else #define debug(fmt,args...) #endif /* MKIMAGE_DEBUG */ |
2434c66da
|
30 31 32 33 34 35 36 37 38 |
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
|
39 40 41 42 43 |
#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 #define MKIMAGE_DTC "dtc" /* assume dtc is in $PATH */ |
89a4d6b12
|
44 |
|
89a4d6b12
|
45 |
#endif /* _MKIIMAGE_H_ */ |