DeveloperBoxMm.fdf 5.7 KB

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