diff --git a/plat/arm/board/fvp/platform.mk b/plat/arm/board/fvp/platform.mk index f79ac46..42a9095 100644 --- a/plat/arm/board/fvp/platform.mk +++ b/plat/arm/board/fvp/platform.mk @@ -236,7 +236,7 @@ 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 @@ 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 diff --git a/services/spd/trusty/trusty.mk b/services/spd/trusty/trusty.mk index 4f0c294..43b80bb 100644 --- a/services/spd/trusty/trusty.mk +++ b/services/spd/trusty/trusty.mk @@ -13,8 +13,6 @@ SPD_SOURCES += services/spd/trusty/generic-arm64-smcall.c endif -BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1 - NEED_BL32 := yes CTX_INCLUDE_FPREGS := 1