mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
rockchip: Check image name for the rksd image
We need a correct name (rk3288, rk3036) so check this to avoid a crash later. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@ -13,11 +13,6 @@
|
||||
|
||||
static uint32_t header;
|
||||
|
||||
static int rkimage_check_params(struct image_tool_params *params)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rkimage_verify_header(unsigned char *buf, int size,
|
||||
struct image_tool_params *params)
|
||||
{
|
||||
@ -56,7 +51,7 @@ U_BOOT_IMAGE_TYPE(
|
||||
"Rockchip Boot Image support",
|
||||
4,
|
||||
&header,
|
||||
rkimage_check_params,
|
||||
rkcommon_check_params,
|
||||
rkimage_verify_header,
|
||||
rkimage_print_header,
|
||||
rkimage_set_header,
|
||||
|
Reference in New Issue
Block a user