PlatformStandaloneMm.fdf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # Copyright (c) 2018, ARM Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. ################################################################################
  7. #
  8. # FD Section
  9. # The [FD] Section is made up of the definition statements and a
  10. # description of what goes into the Flash Device Image. Each FD section
  11. # defines one flash "device" image. A flash device image may be one of
  12. # the following: Removable media bootable image (like a boot floppy
  13. # image,) an Option ROM image (that would be "flashed" into an add-in
  14. # card,) a System "Flash" image (that would be burned into a system's
  15. # flash) or an Update ("Capsule") image that will be used to update and
  16. # existing system flash.
  17. #
  18. ################################################################################
  19. [FD.BL32_AP_MM]
  20. BaseAddress = 0xff200000|gArmTokenSpaceGuid.PcdFdBaseAddress # UEFI in DRAM + 128MB.
  21. Size = 0x00e00000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the device (64MiB).
  22. ErasePolarity = 1
  23. BlockSize = 0x00001000
  24. NumBlocks = 0x0e00
  25. 0x00000000|0x00280000
  26. gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
  27. FV = FVMAIN_COMPACT
  28. [FV.FVMAIN_COMPACT]
  29. FvAlignment = 16
  30. ERASE_POLARITY = 1
  31. MEMORY_MAPPED = TRUE
  32. STICKY_WRITE = TRUE
  33. LOCK_CAP = TRUE
  34. LOCK_STATUS = TRUE
  35. WRITE_DISABLED_CAP = TRUE
  36. WRITE_ENABLED_CAP = TRUE
  37. WRITE_STATUS = TRUE
  38. WRITE_LOCK_CAP = TRUE
  39. WRITE_LOCK_STATUS = TRUE
  40. READ_DISABLED_CAP = TRUE
  41. READ_ENABLED_CAP = TRUE
  42. READ_STATUS = TRUE
  43. READ_LOCK_CAP = TRUE
  44. READ_LOCK_STATUS = TRUE
  45. INF StandaloneMmPkg/Core/StandaloneMmCore.inf
  46. INF StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.inf
  47. ################################################################################
  48. #
  49. # Rules are use with the [FV] section's module INF type to define
  50. # how an FFS file is created for a given INF file. The following Rule are the default
  51. # rules for the different module type. User can add the customized rules to define the
  52. # content of the FFS file.
  53. #
  54. ################################################################################
  55. ############################################################################
  56. # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
  57. ############################################################################
  58. #
  59. #[Rule.Common.DXE_DRIVER]
  60. # FILE DRIVER = $(NAMED_GUID) {
  61. # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
  62. # COMPRESS PI_STD {
  63. # GUIDED {
  64. # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
  65. # UI STRING="$(MODULE_NAME)" Optional
  66. # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
  67. # }
  68. # }
  69. # }
  70. #
  71. ############################################################################
  72. [Rule.Common.MM_CORE_STANDALONE]
  73. FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
  74. PE32 PE32 Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
  75. }
  76. [Rule.Common.MM_STANDALONE]
  77. FILE MM_STANDALONE = $(NAMED_GUID) {
  78. SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
  79. PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
  80. UI STRING="$(MODULE_NAME)" Optional
  81. VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
  82. }