#endif /* !USE_HOSTCC*/
#include <u-boot/crc.h>
-#include <imximage.h>
-#include <generated/autoconf.h>
#ifndef CONFIG_SYS_BARGSIZE
#define CONFIG_SYS_BARGSIZE 512
}
} else if (image_check_type(hdr, IH_TYPE_FIRMWARE_IVT)) {
printf("HAB Blocks: 0x%08x 0x0000 0x%08x\n",
- image_get_load(hdr) - image_get_header_size(),
- (int)(image_get_size(hdr) + image_get_header_size()
- + sizeof(flash_header_v2_t) - CONFIG_CSF_SIZE));
+ image_get_load(hdr) - image_get_header_size(),
+ image_get_size(hdr) + image_get_header_size()
+ - 0x1FE0);
}
}
#include <image.h>
#include <tee/optee.h>
#include <u-boot/crc.h>
-#include <imximage.h>
-#include <generated/autoconf.h>
static image_header_t header;
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);