From 46e2c853d681e3ad2fb1a37b7466ba450464f468 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 2 Apr 2020 14:03:53 +0900 Subject: [PATCH] uniphier: define PLAT_XLAT_TABLES_DYNAMIC only for BL2 This is not used in BL31 or Bl32 for this platform. Pass it to BL2_CPPFLAGS instead of defining it for all BL images. This will produce slightly smaller BL31 and Bl32. Change-Id: I66ec5179f8dc5b112e65547335e7dd0a0f4074cd Signed-off-by: Masahiro Yamada --- plat/socionext/uniphier/include/platform_def.h | 1 - plat/socionext/uniphier/platform.mk | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plat/socionext/uniphier/include/platform_def.h b/plat/socionext/uniphier/include/platform_def.h index 7c6341d14..b23386d8b 100644 --- a/plat/socionext/uniphier/include/platform_def.h +++ b/plat/socionext/uniphier/include/platform_def.h @@ -62,7 +62,6 @@ #define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32) #define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32) -#define PLAT_XLAT_TABLES_DYNAMIC 1 #define MAX_XLAT_TABLES 9 #define MAX_MMAP_REGIONS 13 diff --git a/plat/socionext/uniphier/platform.mk b/plat/socionext/uniphier/platform.mk index 8819545fb..2c0ed92a3 100644 --- a/plat/socionext/uniphier/platform.mk +++ b/plat/socionext/uniphier/platform.mk @@ -21,6 +21,9 @@ BL31_CPPFLAGS += -DPLAT_RO_XLAT_TABLES BL32_CPPFLAGS += -DPLAT_RO_XLAT_TABLES endif +# The dynamic xlat table is only used in BL2 +BL2_CPPFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC + # Cortex-A53 revision r0p4-51rel0 # needed for LD20, unneeded for LD11, PXs3 (no ACE) ERRATA_A53_855873 := 1