]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - tools/rkimage.c
relocate-rela: add missing va_end()
[people/ms/u-boot.git] / tools / rkimage.c
index ef31cb69444ec1573418769a84f94cd4e1d5917b..44d098c77578f9241595254d9e6669b89ee66aa5 100644 (file)
@@ -28,6 +28,9 @@ static void rkimage_set_header(void *buf, struct stat *sbuf, int ifd,
 {
        memcpy(buf + RK_SPL_HDR_START, rkcommon_get_spl_hdr(params),
               RK_SPL_HDR_SIZE);
+
+       if (rkcommon_need_rc4_spl(params))
+               rkcommon_rc4_encode_spl(buf, 4, params->file_size);
 }
 
 static int rkimage_extract_subimage(void *buf, struct image_tool_params *params)