Prevent two weak definitions of the same function
authorDaniel Boulby <[email protected]>
Wed, 27 Jun 2018 15:45:48 +0000 (16:45 +0100)
committerDaniel Boulby <[email protected]>
Thu, 30 Aug 2018 16:50:55 +0000 (17:50 +0100)
Add another level of abstraction of weak defs for
arm_bl2_handle_post_image_load to prevent two weak definitions
of the same function

Change-Id: Ie953786f43b0f88257c82956ffaa5fe0d19603db
Signed-off-by: Daniel Boulby <[email protected]>
plat/arm/board/juno/juno_bl2_setup.c
plat/arm/common/arm_bl2_setup.c

index cedef66c9a0a585135726ff3da0d8fb09677c8ed..1f483d63dae84604764e38517192df8e51c39ed0 100644 (file)
@@ -16,7 +16,7 @@
  * boot flow as the core comes up in aarch64 and to enter the BL32 image a warm
  * reset in aarch32 state is required.
  ******************************************************************************/
-int bl2_plat_handle_post_image_load(unsigned int image_id)
+int arm_bl2_plat_handle_post_image_load(unsigned int image_id)
 {
        int err = arm_bl2_handle_post_image_load(image_id);
 
index 01ae8f3487cf6e15a7cc7f1bba7d3a95852aebd5..a8ea075d808f37ac8c29cb508b53e74123aa136b 100644 (file)
@@ -42,7 +42,7 @@ CASSERT(BL2_BASE >= ARM_TB_FW_CONFIG_LIMIT, assert_bl2_base_overflows);
 
 #if LOAD_IMAGE_V2
 
-#pragma weak bl2_plat_handle_post_image_load
+#pragma weak arm_bl2_plat_handle_post_image_load
 
 #else /* LOAD_IMAGE_V2 */
 
@@ -328,11 +328,16 @@ int arm_bl2_handle_post_image_load(unsigned int image_id)
  * This function can be used by the platforms to update/use image
  * information for given `image_id`.
  ******************************************************************************/
-int bl2_plat_handle_post_image_load(unsigned int image_id)
+int arm_bl2_plat_handle_post_image_load(unsigned int image_id)
 {
        return arm_bl2_handle_post_image_load(image_id);
 }
 
+int bl2_plat_handle_post_image_load(unsigned int image_id)
+{
+       return arm_bl2_plat_handle_post_image_load(image_id);
+}
+
 #else /* LOAD_IMAGE_V2 */
 
 /*******************************************************************************