summaryrefslogtreecommitdiff
path: root/tools/default_image.c
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2019-09-13 18:53:03 +0200
committerStefano Babic <sbabic@denx.de>2019-10-08 16:35:59 +0200
commit70026345ed9131ef74b923f6b81196581235f127 (patch)
treed39bca8f0052d52929ecf451051ecc32e5d4b934 /tools/default_image.c
parent40af7d39aab46383e3b0d52b4b06928231807637 (diff)
downloadu-boot-70026345ed9131ef74b923f6b81196581235f127.tar.gz
Revert "habv4: tools: Avoid hardcoded CSF size for SPL targets"
This reverts commit 62a52f3f85bf33e286632e99f0d39b2c166af0c4.
Diffstat (limited to 'tools/default_image.c')
-rw-r--r--tools/default_image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/default_image.c b/tools/default_image.c
index 7a26232779..4b7d1ed4a1 100644
--- a/tools/default_image.c
+++ b/tools/default_image.c
@@ -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);