1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

Revert "habv4: tools: Avoid hardcoded CSF size for SPL targets"

This reverts commit 62a52f3f85bf33e286632e99f0d39b2c166af0c4.
This commit is contained in:
Stefano Babic
2019-09-13 18:53:03 +02:00
parent 40af7d39aa
commit 70026345ed
2 changed files with 4 additions and 9 deletions

View File

@@ -61,8 +61,6 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch,
#endif /* !USE_HOSTCC*/ #endif /* !USE_HOSTCC*/
#include <u-boot/crc.h> #include <u-boot/crc.h>
#include <imximage.h>
#include <generated/autoconf.h>
#ifndef CONFIG_SYS_BARGSIZE #ifndef CONFIG_SYS_BARGSIZE
#define CONFIG_SYS_BARGSIZE 512 #define CONFIG_SYS_BARGSIZE 512
@@ -380,9 +378,9 @@ void image_print_contents(const void *ptr)
} }
} else if (image_check_type(hdr, IH_TYPE_FIRMWARE_IVT)) { } else if (image_check_type(hdr, IH_TYPE_FIRMWARE_IVT)) {
printf("HAB Blocks: 0x%08x 0x0000 0x%08x\n", printf("HAB Blocks: 0x%08x 0x0000 0x%08x\n",
image_get_load(hdr) - image_get_header_size(), image_get_load(hdr) - image_get_header_size(),
(int)(image_get_size(hdr) + image_get_header_size() image_get_size(hdr) + image_get_header_size()
+ sizeof(flash_header_v2_t) - CONFIG_CSF_SIZE)); - 0x1FE0);
} }
} }

View File

@@ -19,8 +19,6 @@
#include <image.h> #include <image.h>
#include <tee/optee.h> #include <tee/optee.h>
#include <u-boot/crc.h> #include <u-boot/crc.h>
#include <imximage.h>
#include <generated/autoconf.h>
static image_header_t header; 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) if (params->type == IH_TYPE_FIRMWARE_IVT)
/* Add size of CSF minus IVT */ /* Add size of CSF minus IVT */
imagesize = sbuf->st_size - sizeof(image_header_t) imagesize = sbuf->st_size - sizeof(image_header_t) + 0x1FE0;
+ CONFIG_CSF_SIZE - sizeof(flash_header_v2_t);
else else
imagesize = sbuf->st_size - sizeof(image_header_t); imagesize = sbuf->st_size - sizeof(image_header_t);