DeveloperBoxMm.fdf 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #
  2. # Copyright (c) 2013-2014, ARM Limited. All rights reserved.
  3. # Copyright (c) 2017-2018, Linaro Limited. All rights reserved.
  4. #
  5. # This program and the accompanying materials
  6. # are licensed and made available under the terms and conditions of the BSD License
  7. # which accompanies this distribution. The full text of the license may be found at
  8. # http://opensource.org/licenses/bsd-license.php
  9. #
  10. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  12. #
  13. ################################################################################
  14. #
  15. # FD Section
  16. # The [FD] Section is made up of the definition statements and a
  17. # description of what goes into the Flash Device Image. Each FD section
  18. # defines one flash "device" image. A flash device image may be one of
  19. # the following: Removable media bootable image (like a boot floppy
  20. # image,) an Option ROM image (that would be "flashed" into an add-in
  21. # card,) a System "Flash" image (that would be burned into a system's
  22. # flash) or an Update ("Capsule") image that will be used to update and
  23. # existing system flash.
  24. #
  25. ################################################################################
  26. [FD.STANDALONE_MM]
  27. BaseAddress = 0xfc000000
  28. Size = 0x00040000
  29. ErasePolarity = 1
  30. # This one is tricky, it must be: BlockSize * NumBlocks = Size
  31. BlockSize = 0x00010000
  32. NumBlocks = 0x4
  33. ################################################################################
  34. #
  35. # Following are lists of FD Region layout which correspond to the locations of different
  36. # images within the flash device.
  37. #
  38. # Regions must be defined in ascending order and may not overlap.
  39. #
  40. # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
  41. # the pipe "|" character, followed by the size of the region, also in hex with the leading
  42. # "0x" characters. Like:
  43. # Offset|Size
  44. # PcdOffsetCName|PcdSizeCName
  45. # RegionType <FV, DATA, or FILE>
  46. #
  47. ################################################################################
  48. 0x00000000|0x00040000
  49. FV = FvStandaloneMmCompact
  50. ################################################################################
  51. #
  52. # FV Section
  53. #
  54. # [FV] section is used to define what components or modules are placed within a flash
  55. # device file. This section also defines order the components and modules are positioned
  56. # within the image. The [FV] section consists of define statements, set statements and
  57. # module statements.
  58. #
  59. ################################################################################
  60. [FV.FvStandaloneMmCompact]
  61. FvNameGuid = db7dcad2-de57-455d-a385-c297a6536cd8
  62. BlockSize = 0x10000
  63. NumBlocks = 0
  64. FvAlignment = 8
  65. ERASE_POLARITY = 1
  66. MEMORY_MAPPED = TRUE
  67. STICKY_WRITE = TRUE
  68. LOCK_CAP = TRUE
  69. LOCK_STATUS = TRUE
  70. WRITE_DISABLED_CAP = TRUE
  71. WRITE_ENABLED_CAP = TRUE
  72. WRITE_STATUS = TRUE
  73. WRITE_LOCK_CAP = TRUE
  74. WRITE_LOCK_STATUS = TRUE
  75. READ_DISABLED_CAP = TRUE
  76. READ_ENABLED_CAP = TRUE
  77. READ_STATUS = TRUE
  78. READ_LOCK_CAP = TRUE
  79. READ_LOCK_STATUS = TRUE
  80. INF StandaloneMmPkg/Core/StandaloneMmCore.inf
  81. FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
  82. SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
  83. SECTION FV_IMAGE = FVSTANDALONEMM
  84. }
  85. }
  86. [FV.FvStandaloneMm]
  87. FvNameGuid = 2160589f-77f4-4cae-b9ba-0be99d2e33a4
  88. BlockSize = 0x40
  89. NumBlocks = 0 # This FV gets compressed so make it just big enough
  90. FvAlignment = 8 # FV alignment and FV attributes setting.
  91. ERASE_POLARITY = 1
  92. MEMORY_MAPPED = TRUE
  93. STICKY_WRITE = TRUE
  94. LOCK_CAP = TRUE
  95. LOCK_STATUS = TRUE
  96. WRITE_DISABLED_CAP = TRUE
  97. WRITE_ENABLED_CAP = TRUE
  98. WRITE_STATUS = TRUE
  99. WRITE_LOCK_CAP = TRUE
  100. WRITE_LOCK_STATUS = TRUE
  101. READ_DISABLED_CAP = TRUE
  102. READ_ENABLED_CAP = TRUE
  103. READ_STATUS = TRUE
  104. READ_LOCK_CAP = TRUE
  105. READ_LOCK_STATUS = TRUE
  106. INF Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/Fip006StandaloneMm.inf
  107. INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf
  108. INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
  109. INF StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.inf
  110. ################################################################################
  111. #
  112. # Rules are use with the [FV] section's module INF type to define
  113. # how an FFS file is created for a given INF file. The following Rule are the default
  114. # rules for the different module type. User can add the customized rules to define the
  115. # content of the FFS file.
  116. #
  117. ################################################################################
  118. ############################################################################
  119. # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
  120. ############################################################################
  121. #
  122. #[Rule.Common.DXE_DRIVER]
  123. # FILE DRIVER = $(NAMED_GUID) {
  124. # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
  125. # COMPRESS PI_STD {
  126. # GUIDED {
  127. # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
  128. # UI STRING="$(MODULE_NAME)" Optional
  129. # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
  130. # }
  131. # }
  132. # }
  133. #
  134. ############################################################################
  135. [Rule.Common.MM_CORE_STANDALONE]
  136. FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
  137. TE TE Align = 4K $(INF_OUTPUT)/$(MODULE_NAME).efi
  138. }
  139. [Rule.Common.MM_STANDALONE]
  140. FILE MM_STANDALONE = $(NAMED_GUID) {
  141. SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
  142. PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
  143. UI STRING="$(MODULE_NAME)" Optional
  144. VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
  145. }