mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
Revert "habv4: tools: Avoid hardcoded CSF size for SPL targets"
This reverts commit 62a52f3f85bf33e286632e99f0d39b2c166af0c4.
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
#include <image.h>
|
||||
#include <tee/optee.h>
|
||||
#include <u-boot/crc.h>
|
||||
#include <imximage.h>
|
||||
#include <generated/autoconf.h>
|
||||
|
||||
static image_header_t header;
|
||||
|
||||
@@ -108,8 +106,7 @@ static void image_set_header(void *ptr, struct stat *sbuf, int ifd,
|
||||
|
||||
if (params->type == IH_TYPE_FIRMWARE_IVT)
|
||||
/* Add size of CSF minus IVT */
|
||||
imagesize = sbuf->st_size - sizeof(image_header_t)
|
||||
+ CONFIG_CSF_SIZE - sizeof(flash_header_v2_t);
|
||||
imagesize = sbuf->st_size - sizeof(image_header_t) + 0x1FE0;
|
||||
else
|
||||
imagesize = sbuf->st_size - sizeof(image_header_t);
|
||||
|
||||
|
Reference in New Issue
Block a user