| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#ifndef INCLUDED_SET_H |
| 25 |
#define INCLUDED_SET_H |
| 26 |
|
| 27 |
#include "cbootimage.h" |
| 28 |
#include "parse.h" |
| 29 |
#include "string.h" |
| 30 |
#include "sys/stat.h" |
| 31 |
|
| 32 |
int |
| 33 |
set_bootloader(build_image_context *context, |
| 34 |
char *filename, |
| 35 |
uint32_t load_addr, |
| 36 |
uint32_t entry_point); |
| 37 |
|
| 38 |
int |
| 39 |
set_mts_image(build_image_context *context, |
| 40 |
char *filename, |
| 41 |
uint32_t load_addr, |
| 42 |
uint32_t entry_point); |
| 43 |
|
| 44 |
int |
| 45 |
set_rsa_param(build_image_context *context, |
| 46 |
parse_token token, |
| 47 |
char *filename); |
| 48 |
|
| 49 |
int |
| 50 |
context_set_value(build_image_context *context, |
| 51 |
parse_token token, |
| 52 |
void *value); |
| 53 |
|
| 54 |
int |
| 55 |
read_from_image(char *filename, |
| 56 |
uint32_t offset, |
| 57 |
uint32_t max_size, |
| 58 |
uint8_t **Image, |
| 59 |
uint32_t *actual_size, |
| 60 |
file_type f_type); |
| 61 |
|
| 62 |
#endif |