Commit ba6c31da authored by Soby Mathew's avatar Soby Mathew
Browse files

Fix JUNO AArch32 build



This patch fixes the inconsistency with regards as to how
BL2_BASE/BL2U_BASE and BL2_LIMIT/BL2U_LIMIT macros are defined
when building Juno to run in AArch32 mode at EL3. In this case,
BL32 is compiled for AArch32 whereas BL1 and BL2 are compiled
for AArch64. This resulted in BL32 conditionally compiling a
different definition of the above mentioned macros from BL1/BL2.
This is fixed by taking into consideration the
JUNO_AARCH32_EL3_RUNTIME build flag as well in the conditional
compilation check.

Change-Id: I27ac68aa4df0502089c1739c05366a9c509eb5be
Signed-off-by: default avatarSoby Mathew <soby.mathew@arm.com>
parent 942ee0d8
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
/******************************************************************************* /*******************************************************************************
* BL2 specific defines. * BL2 specific defines.
******************************************************************************/ ******************************************************************************/
#if ARM_BL31_IN_DRAM || defined(AARCH32) #if ARM_BL31_IN_DRAM || (defined(AARCH32) && !defined(JUNO_AARCH32_EL3_RUNTIME))
/* /*
* For AArch32 BL31 is not applicable. * For AArch32 BL31 is not applicable.
* For AArch64 BL31 is loaded in the DRAM. * For AArch64 BL31 is loaded in the DRAM.
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
* FWU Images: NS_BL1U, BL2U & NS_BL2U defines. * FWU Images: NS_BL1U, BL2U & NS_BL2U defines.
******************************************************************************/ ******************************************************************************/
#define BL2U_BASE BL2_BASE #define BL2U_BASE BL2_BASE
#if ARM_BL31_IN_DRAM || defined(AARCH32) #if ARM_BL31_IN_DRAM || (defined(AARCH32) && !defined(JUNO_AARCH32_EL3_RUNTIME))
/* /*
* For AArch32 BL31 is not applicable. * For AArch32 BL31 is not applicable.
* For AArch64 BL31 is loaded in the DRAM. * For AArch64 BL31 is loaded in the DRAM.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment