summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-14 14:02:59 -0600
committerSimon Glass <sjg@chromium.org>2016-05-27 10:23:07 -0600
commit9217d93bc45668815ebaab0ad9280ace166b7348 (patch)
tree9113cc0759009e9b46382902a713f3c8df018530 /tools
parent61fe076f0fceaa00bcbb8901504aedf1d1096293 (diff)
downloadu-boot-imx-9217d93bc45668815ebaab0ad9280ace166b7348.zip
u-boot-imx-9217d93bc45668815ebaab0ad9280ace166b7348.tar.gz
u-boot-imx-9217d93bc45668815ebaab0ad9280ace166b7348.tar.bz2
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/rkimage.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/rkimage.c b/tools/rkimage.c
index f9fdcfa..ef31cb6 100644
--- a/tools/rkimage.c
+++ b/tools/rkimage.c
@@ -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,