aboutsummaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorStefano Babic2019-09-13 18:53:03 +0200
committerStefano Babic2019-10-08 16:35:59 +0200
commit70026345ed9131ef74b923f6b81196581235f127 (patch)
treed39bca8f0052d52929ecf451051ecc32e5d4b934 /common/image.c
parent40af7d39aab46383e3b0d52b4b06928231807637 (diff)
Revert "habv4: tools: Avoid hardcoded CSF size for SPL targets"
This reverts commit 62a52f3f85bf33e286632e99f0d39b2c166af0c4.
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/image.c b/common/image.c
index 9badb915f48..179eef0bd2d 100644
--- a/common/image.c
+++ b/common/image.c
@@ -61,8 +61,6 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch,
#endif /* !USE_HOSTCC*/
#include <u-boot/crc.h>
-#include <imximage.h>
-#include <generated/autoconf.h>
#ifndef CONFIG_SYS_BARGSIZE
#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)) {
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);
}
}