]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat/arm: Fix build failure due to increase in BL2 size
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Fri, 10 Jul 2020 08:44:21 +0000 (09:44 +0100)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Fri, 10 Jul 2020 11:25:18 +0000 (12:25 +0100)
BL2 size gets increased due to the libfdt library update and
that eventually cause no-optimization build failure for BL2 as below:
aarch64-none-elf-ld.bfd: BL2 image has exceeded its limit.
aarch64-none-elf-ld.bfd: region `RAM' overflowed by 4096 bytes
Makefile:1070: recipe for target 'build/fvp/debug/bl2/bl2.elf' failed
make: *** [build/fvp/debug/bl2/bl2.elf] Error 1

Fixed build failure by increasing BL2 image size limit by 4Kb.

Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I92a57eb4db601561a98e254b64994bb921a88db3

plat/arm/board/fvp/include/platform_def.h

index 7222c5519022887e676cbeeeb68ca0ababe40701..f8fb821b30f11dd20b99ca325fbbeec1e498f415 100644 (file)
 #if TRUSTED_BOARD_BOOT
 # define PLAT_ARM_MAX_BL2_SIZE (UL(0x1D000) - FVP_BL2_ROMLIB_OPTIMIZATION)
 #else
-# define PLAT_ARM_MAX_BL2_SIZE (UL(0x12000) - FVP_BL2_ROMLIB_OPTIMIZATION)
+# define PLAT_ARM_MAX_BL2_SIZE (UL(0x13000) - FVP_BL2_ROMLIB_OPTIMIZATION)
 #endif
 
 #if RESET_TO_BL31