@@ -210,6 +210,31 @@ READ_LOCK_STATUS = TRUE
# FV Filesystem
INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
+!ifdef $(DTB_DIR)
+ #
+ # Embed flattened device tree (FDT) images for all known
+ # variants of this platform
+ #
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpBaseAEMv8x4GicV2) {
+ $(DTB_DIR)/fvp-base-gicv2-psci.dtb
+ }
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpBaseAEMv8x4GicV2Legacy) {
+ $(DTB_DIR)/fvp-base-gicv2legacy-psci.dtb
+ }
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpBaseAEMv8x4GicV3) {
+ $(DTB_DIR)/fvp-base-gicv3-psci.dtb
+ }
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpFoundationGicV2) {
+ $(DTB_DIR)/fvp-foundation-gicv2-psci.dtb
+ }
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpFoundationGicV2Legacy) {
+ $(DTB_DIR)/fvp-foundation-gicv2legacy-psci.dtb
+ }
+ FILE RAW = PCD (gArmVExpressTokenSpaceGuid.PcdFdtFvpFoundationGicV3) {
+ $(DTB_DIR)/fvp-foundation-gicv3-psci.dtb
+ }
+!endif
+
[FV.FVMAIN_COMPACT]
FvAlignment = 16
ERASE_POLARITY = 1
If DTB_DIR=<path> is set during the build, incorporate DTBs from that path for all AArch64 FVP platform variants so that they can be loaded straight from the firmware image instead of from a file system. This relieves a user of having to keep a DTB file with the right name in the working directory of the model. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.fdf | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+)