1
2
3
4
5
6
7
8
9#include "imagetool.h"
10#include <image.h>
11#include <rc4.h>
12#include "mkimage.h"
13#include "rkcommon.h"
14
15static int rksd_check_image_type(uint8_t type)
16{
17 if (type == IH_TYPE_RKSD)
18 return EXIT_SUCCESS;
19 else
20 return EXIT_FAILURE;
21}
22
23
24
25
26U_BOOT_IMAGE_TYPE(
27 rksd,
28 "Rockchip SD Boot Image support",
29 0,
30 NULL,
31 rkcommon_check_params,
32 rkcommon_verify_header,
33 rkcommon_print_header,
34 rkcommon_set_header,
35 NULL,
36 rksd_check_image_type,
37 NULL,
38 rkcommon_vrec_header
39);
40