Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 1 | #
|
Ronald Cron | 04f1a70 | 2015-02-26 10:54:39 +0000 | [diff] [blame] | 2 | # Copyright (c) 2011 - 2015, ARM Limited. All rights reserved.
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 3 | #
|
| 4 | # This program and the accompanying materials
|
| 5 | # are licensed and made available under the terms and conditions of the BSD License
|
| 6 | # which accompanies this distribution. The full text of the license may be found at
|
| 7 | # http://opensource.org/licenses/bsd-license.php
|
| 8 | #
|
| 9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 11 | #
|
| 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 |
|
| 27 | [FD.RTSM_VE_Foundationv8_EFI]
|
| 28 | BaseAddress = 0xA0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in RAM (Foundation model has no NOR Flash).
|
| 29 | Size = 0x00300000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
|
| 30 | ErasePolarity = 1
|
| 31 |
|
| 32 | # This one is tricky, it must be: BlockSize * NumBlocks = Size
|
| 33 | BlockSize = 0x00001000
|
| 34 | NumBlocks = 0x300
|
| 35 |
|
| 36 | ################################################################################
|
| 37 | #
|
| 38 | # Following are lists of FD Region layout which correspond to the locations of different
|
| 39 | # images within the flash device.
|
| 40 | #
|
| 41 | # Regions must be defined in ascending order and may not overlap.
|
| 42 | #
|
| 43 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
|
| 44 | # the pipe "|" character, followed by the size of the region, also in hex with the leading
|
| 45 | # "0x" characters. Like:
|
| 46 | # Offset|Size
|
| 47 | # PcdOffsetCName|PcdSizeCName
|
| 48 | # RegionType <FV, DATA, or FILE>
|
| 49 | #
|
| 50 | ################################################################################
|
| 51 |
|
| 52 | 0x00000000|0x00080000
|
| 53 | gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvSize
|
| 54 | FV = FVMAIN_SEC
|
| 55 |
|
| 56 | 0x00080000|0x00280000
|
| 57 | gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
|
| 58 | FV = FVMAIN_COMPACT
|
| 59 |
|
| 60 |
|
| 61 | ################################################################################
|
| 62 | #
|
| 63 | # FV Section
|
| 64 | #
|
| 65 | # [FV] section is used to define what components or modules are placed within a flash
|
| 66 | # device file. This section also defines order the components and modules are positioned
|
| 67 | # within the image. The [FV] section consists of define statements, set statements and
|
| 68 | # module statements.
|
| 69 | #
|
| 70 | ################################################################################
|
| 71 |
|
| 72 | [FV.FVMAIN_SEC]
|
| 73 | FvAlignment = 16
|
| 74 | ERASE_POLARITY = 1
|
| 75 | MEMORY_MAPPED = TRUE
|
| 76 | STICKY_WRITE = TRUE
|
| 77 | LOCK_CAP = TRUE
|
| 78 | LOCK_STATUS = TRUE
|
| 79 | WRITE_DISABLED_CAP = TRUE
|
| 80 | WRITE_ENABLED_CAP = TRUE
|
| 81 | WRITE_STATUS = TRUE
|
| 82 | WRITE_LOCK_CAP = TRUE
|
| 83 | WRITE_LOCK_STATUS = TRUE
|
| 84 | READ_DISABLED_CAP = TRUE
|
| 85 | READ_ENABLED_CAP = TRUE
|
| 86 | READ_STATUS = TRUE
|
| 87 | READ_LOCK_CAP = TRUE
|
| 88 | READ_LOCK_STATUS = TRUE
|
| 89 |
|
| 90 | INF ArmPlatformPkg/Sec/Sec.inf
|
| 91 |
|
| 92 |
|
| 93 | [FV.FvMain]
|
| 94 | BlockSize = 0x40
|
| 95 | NumBlocks = 0 # This FV gets compressed so make it just big enough
|
| 96 | FvAlignment = 16 # FV alignment and FV attributes setting.
|
| 97 | ERASE_POLARITY = 1
|
| 98 | MEMORY_MAPPED = TRUE
|
| 99 | STICKY_WRITE = TRUE
|
| 100 | LOCK_CAP = TRUE
|
| 101 | LOCK_STATUS = TRUE
|
| 102 | WRITE_DISABLED_CAP = TRUE
|
| 103 | WRITE_ENABLED_CAP = TRUE
|
| 104 | WRITE_STATUS = TRUE
|
| 105 | WRITE_LOCK_CAP = TRUE
|
| 106 | WRITE_LOCK_STATUS = TRUE
|
| 107 | READ_DISABLED_CAP = TRUE
|
| 108 | READ_ENABLED_CAP = TRUE
|
| 109 | READ_STATUS = TRUE
|
| 110 | READ_LOCK_CAP = TRUE
|
| 111 | READ_LOCK_STATUS = TRUE
|
Olivier Martin | e6c51ea | 2015-07-06 16:45:13 +0000 | [diff] [blame] | 112 | FvNameGuid = 6685e0b5-d6bb-4c12-97ef-58bd87112dee
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 113 |
|
Ronald Cron | 04f1a70 | 2015-02-26 10:54:39 +0000 | [diff] [blame] | 114 | APRIORI DXE {
|
| 115 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
| 116 | }
|
| 117 |
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 118 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
Ronald Cron | 04f1a70 | 2015-02-26 10:54:39 +0000 | [diff] [blame] | 119 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 120 |
|
| 121 | #
|
| 122 | # PI DXE Drivers producing Architectural Protocols (EFI Services)
|
| 123 | #
|
| 124 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
|
| 125 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
| 126 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
| 127 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
| 128 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
|
| 129 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
| 130 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
| 131 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
|
| 132 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
|
| 133 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
|
| 134 |
|
| 135 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
| 136 |
|
| 137 | #
|
| 138 | # Multiple Console IO support
|
| 139 | #
|
| 140 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
| 141 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
| 142 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
| 143 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
| 144 | INF EmbeddedPkg/SerialDxe/SerialDxe.inf
|
| 145 |
|
Olivier Martin | 017baa1 | 2013-10-29 06:36:34 +0000 | [diff] [blame] | 146 | INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 147 | INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
|
| 148 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
| 149 |
|
| 150 | #
|
| 151 | # Semi-hosting filesystem
|
| 152 | #
|
| 153 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
|
| 154 |
|
| 155 | #
|
| 156 | # FAT filesystem + GPT/MBR partitioning
|
| 157 | #
|
| 158 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
| 159 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
| 160 | INF FatBinPkg/EnhancedFatDxe/Fat.inf
|
| 161 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
| 162 |
|
| 163 | #
|
Ronald Cron | 62d441f | 2014-08-19 13:22:20 +0000 | [diff] [blame] | 164 | # Platform Driver
|
| 165 | #
|
| 166 | INF ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
|
| 167 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
| 168 |
|
| 169 | #
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 170 | # UEFI application (Shell Embedded Boot Loader)
|
| 171 | #
|
| 172 | INF ShellBinPkg/UefiShell/UefiShell.inf
|
| 173 |
|
| 174 | #
|
| 175 | # Bds
|
| 176 | #
|
| 177 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
| 178 | INF ArmPlatformPkg/Bds/Bds.inf
|
| 179 |
|
Olivier Martin | f066ab4 | 2015-05-05 15:43:48 +0000 | [diff] [blame] | 180 | #
|
| 181 | # FDT installation
|
| 182 | #
|
| 183 | # The UEFI driver is at the end of the list of the driver to be dispatched
|
| 184 | # after the device drivers (eg: Ethernet) to ensure we have support for them.
|
| 185 | INF EmbeddedPkg/Drivers/FdtPlatformDxe/FdtPlatformDxe.inf
|
| 186 |
|
Olivier Martin | 901b451 | 2015-01-06 15:41:59 +0000 | [diff] [blame] | 187 | # FV Filesystem
|
| 188 | INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 189 |
|
Ronald Cron | 0ead5ec | 2015-07-14 14:32:24 +0000 | [diff] [blame^] | 190 | # Legacy Linux Loader
|
| 191 | INF ArmPkg/Application/LinuxLoader/LinuxLoader.inf
|
| 192 |
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 193 | [FV.FVMAIN_COMPACT]
|
| 194 | FvAlignment = 16
|
| 195 | ERASE_POLARITY = 1
|
| 196 | MEMORY_MAPPED = TRUE
|
| 197 | STICKY_WRITE = TRUE
|
| 198 | LOCK_CAP = TRUE
|
| 199 | LOCK_STATUS = TRUE
|
| 200 | WRITE_DISABLED_CAP = TRUE
|
| 201 | WRITE_ENABLED_CAP = TRUE
|
| 202 | WRITE_STATUS = TRUE
|
| 203 | WRITE_LOCK_CAP = TRUE
|
| 204 | WRITE_LOCK_STATUS = TRUE
|
| 205 | READ_DISABLED_CAP = TRUE
|
| 206 | READ_ENABLED_CAP = TRUE
|
| 207 | READ_STATUS = TRUE
|
| 208 | READ_LOCK_CAP = TRUE
|
| 209 | READ_LOCK_STATUS = TRUE
|
| 210 |
|
| 211 | !if $(EDK2_SKIP_PEICORE) == 1
|
| 212 | INF ArmPlatformPkg/PrePi/PeiMPCore.inf
|
| 213 | !else
|
| 214 | INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
|
| 215 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
| 216 | INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
|
| 217 | INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
|
| 218 | INF ArmPkg/Drivers/CpuPei/CpuPei.inf
|
| 219 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
| 220 | INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
|
| 221 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
| 222 | !endif
|
| 223 |
|
| 224 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
| 225 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
| 226 | SECTION FV_IMAGE = FVMAIN
|
| 227 | }
|
| 228 | }
|
| 229 |
|
| 230 |
|
| 231 | ################################################################################
|
| 232 | #
|
| 233 | # Rules are use with the [FV] section's module INF type to define
|
| 234 | # how an FFS file is created for a given INF file. The following Rule are the default
|
| 235 | # rules for the different module type. User can add the customized rules to define the
|
| 236 | # content of the FFS file.
|
| 237 | #
|
| 238 | ################################################################################
|
| 239 |
|
| 240 |
|
| 241 | ############################################################################
|
| 242 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
|
| 243 | ############################################################################
|
| 244 | #
|
| 245 | #[Rule.Common.DXE_DRIVER]
|
| 246 | # FILE DRIVER = $(NAMED_GUID) {
|
| 247 | # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 248 | # COMPRESS PI_STD {
|
| 249 | # GUIDED {
|
| 250 | # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 251 | # UI STRING="$(MODULE_NAME)" Optional
|
| 252 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 253 | # }
|
| 254 | # }
|
| 255 | # }
|
| 256 | #
|
| 257 | ############################################################################
|
| 258 |
|
| 259 | [Rule.Common.SEC]
|
| 260 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
Olivier Martin | 6d0ca25 | 2014-07-15 09:24:25 +0000 | [diff] [blame] | 261 | TE TE Align = 4K $(INF_OUTPUT)/$(MODULE_NAME).efi
|
Harry Liebel | f9cec5f | 2013-07-19 00:07:16 +0000 | [diff] [blame] | 262 | }
|
| 263 |
|
| 264 | [Rule.Common.PEI_CORE]
|
| 265 | FILE PEI_CORE = $(NAMED_GUID) {
|
| 266 | TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 267 | UI STRING ="$(MODULE_NAME)" Optional
|
| 268 | }
|
| 269 |
|
| 270 | [Rule.Common.PEIM]
|
| 271 | FILE PEIM = $(NAMED_GUID) {
|
| 272 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 273 | TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 274 | UI STRING="$(MODULE_NAME)" Optional
|
| 275 | }
|
| 276 |
|
| 277 | [Rule.Common.PEIM.TIANOCOMPRESSED]
|
| 278 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
|
| 279 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 280 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
|
| 281 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 282 | UI STRING="$(MODULE_NAME)" Optional
|
| 283 | }
|
| 284 | }
|
| 285 |
|
| 286 | [Rule.Common.DXE_CORE]
|
| 287 | FILE DXE_CORE = $(NAMED_GUID) {
|
| 288 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 289 | UI STRING="$(MODULE_NAME)" Optional
|
| 290 | }
|
| 291 |
|
| 292 | [Rule.Common.UEFI_DRIVER]
|
| 293 | FILE DRIVER = $(NAMED_GUID) {
|
| 294 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 295 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 296 | UI STRING="$(MODULE_NAME)" Optional
|
| 297 | }
|
| 298 |
|
| 299 | [Rule.Common.DXE_DRIVER]
|
| 300 | FILE DRIVER = $(NAMED_GUID) {
|
| 301 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 302 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 303 | UI STRING="$(MODULE_NAME)" Optional
|
| 304 | }
|
| 305 |
|
| 306 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
| 307 | FILE DRIVER = $(NAMED_GUID) {
|
| 308 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 309 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 310 | UI STRING="$(MODULE_NAME)" Optional
|
| 311 | }
|
| 312 |
|
| 313 | [Rule.Common.UEFI_APPLICATION]
|
| 314 | FILE APPLICATION = $(NAMED_GUID) {
|
| 315 | UI STRING ="$(MODULE_NAME)" Optional
|
| 316 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 317 | }
|
| 318 |
|
| 319 | [Rule.Common.UEFI_DRIVER.BINARY]
|
| 320 | FILE DRIVER = $(NAMED_GUID) {
|
| 321 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
| 322 | PE32 PE32 |.efi
|
| 323 | UI STRING="$(MODULE_NAME)" Optional
|
| 324 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 325 | }
|
| 326 |
|
| 327 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
| 328 | FILE APPLICATION = $(NAMED_GUID) {
|
| 329 | PE32 PE32 |.efi
|
| 330 | UI STRING="$(MODULE_NAME)" Optional
|
| 331 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 332 | }
|