fvp: trusty: Move dynamic xlat enable to platform
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 12 Feb 2019 13:32:03 +0000 (13:32 +0000)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Tue, 12 Feb 2019 13:32:08 +0000 (13:32 +0000)
Rather than letting the Trusty makefile set the option to enable dynamic
translation tables, make platforms do it themselves.

This also allows platforms to replace the implementation of the
translation tables library as long as they use the same function
prototypes.

Change-Id: Ia60904f61709ac323addcb57f7a83391d9e21cd0
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
plat/arm/board/fvp/platform.mk
services/spd/trusty/trusty.mk

index f79ac466b403feed9f75ba51b5f7c2c7d9f1f5a4..42a9095d91631aea9e9922a76f0eae838f0e7f54 100644 (file)
@@ -236,7 +236,7 @@ ifeq (${ARCH},aarch32)
     ifeq (${RESET_TO_SP_MIN},1)
         BL32_CFLAGS    +=      -DPLAT_XLAT_TABLES_DYNAMIC=1
     endif
-else
+else # if AArch64
     ifeq (${RESET_TO_BL31},1)
         BL31_CFLAGS    +=      -DPLAT_XLAT_TABLES_DYNAMIC=1
     endif
@@ -245,6 +245,9 @@ else
             BL31_CFLAGS        +=      -DPLAT_XLAT_TABLES_DYNAMIC=1
         endif
     endif
+    ifeq (${SPD},trusty)
+        BL31_CFLAGS    +=      -DPLAT_XLAT_TABLES_DYNAMIC=1
+    endif
 endif
 
 # Add support for platform supplied linker script for BL31 build
index 4f0c294763552ec2a5c255b04925d82e14c4b12d..43b80bba7d3c0d71d157e8d0a788022ba69ac1ae 100644 (file)
@@ -13,8 +13,6 @@ ifeq (${TRUSTY_SPD_WITH_GENERIC_SERVICES},1)
 SPD_SOURCES            +=      services/spd/trusty/generic-arm64-smcall.c
 endif
 
-BL31_CFLAGS    +=              -DPLAT_XLAT_TABLES_DYNAMIC=1
-
 NEED_BL32              :=      yes
 
 CTX_INCLUDE_FPREGS     :=      1