diff options
author | Roberto Vargas <roberto.vargas@arm.com> | 2018-09-24 17:20:48 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-09-28 15:31:52 +0100 |
commit | ed51b51f7a9163a7fc48289c5ed97a3fe4fe504f (patch) | |
tree | 09c75a5c072abcec2f196dfa5dc82ce1d3153db0 /bl1/bl1_fwu.c | |
parent | 0b812305998380569fc609ea87157975780fc1e2 (diff) |
Remove build option LOAD_IMAGE_V2
The code of LOAD_IMAGE_V2=0 has been removed.
Change-Id: Iea03e5bebb90c66889bdb23f85c07d0c9717fffe
Co-authored-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'bl1/bl1_fwu.c')
-rw-r--r-- | bl1/bl1_fwu.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/bl1/bl1_fwu.c b/bl1/bl1_fwu.c index 25be5770..d762d076 100644 --- a/bl1/bl1_fwu.c +++ b/bl1/bl1_fwu.c @@ -291,26 +291,11 @@ static int bl1_fwu_image_copy(unsigned int image_id, return -ENOMEM; } -#if LOAD_IMAGE_V2 /* Check that the image size to load is within limit */ if (image_size > image_desc->image_info.image_max_size) { WARN("BL1-FWU: Image size out of bounds\n"); return -ENOMEM; } -#else - /* - * Check the image will fit into the free trusted RAM after BL1 - * load. - */ - const meminfo_t *mem_layout = bl1_plat_sec_mem_layout(); - if (!is_mem_free(mem_layout->free_base, mem_layout->free_size, - image_desc->image_info.image_base, - image_size)) { - WARN("BL1-FWU: Copy not allowed due to insufficient" - " resources.\n"); - return -ENOMEM; - } -#endif /* Save the given image size. */ image_desc->image_info.image_size = image_size; |