Michael Casadevall | 6f5872b | 2014-09-18 18:11:24 +0000 | [diff] [blame] | 1 | #
|
| 2 | # Copyright (c) 2011, 2013, ARM Limited. All rights reserved.
|
| 3 | # Copyright (c) 2014, 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 | #
|
| 16 | # FD Section
|
| 17 | # The [FD] Section is made up of the definition statements and a
|
| 18 | # description of what goes into the Flash Device Image. Each FD section
|
| 19 | # defines one flash "device" image. A flash device image may be one of
|
| 20 | # the following: Removable media bootable image (like a boot floppy
|
| 21 | # image,) an Option ROM image (that would be "flashed" into an add-in
|
| 22 | # card,) a System "Flash" image (that would be burned into a system's
|
| 23 | # flash) or an Update ("Capsule") image that will be used to update and
|
| 24 | # existing system flash.
|
| 25 | #
|
| 26 | ################################################################################
|
| 27 |
|
| 28 | [FD.QEMU_EFI]
|
| 29 | BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # QEMU assigns 0 - 0x8000000 for a BootROM
|
| 30 | Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
|
| 31 | ErasePolarity = 1
|
| 32 |
|
| 33 | # This one is tricky, it must be: BlockSize * NumBlocks = Size
|
| 34 | BlockSize = 0x00001000
|
| 35 | NumBlocks = 0x200
|
| 36 |
|
| 37 | ################################################################################
|
| 38 | #
|
| 39 | # Following are lists of FD Region layout which correspond to the locations of different
|
| 40 | # images within the flash device.
|
| 41 | #
|
| 42 | # Regions must be defined in ascending order and may not overlap.
|
| 43 | #
|
| 44 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
|
| 45 | # the pipe "|" character, followed by the size of the region, also in hex with the leading
|
| 46 | # "0x" characters. Like:
|
| 47 | # Offset|Size
|
| 48 | # PcdOffsetCName|PcdSizeCName
|
| 49 | # RegionType <FV, DATA, or FILE>
|
| 50 | #
|
| 51 | ################################################################################
|
| 52 |
|
| 53 | #
|
| 54 | # UEFI has trouble dealing with FVs that reside at physical address 0x0.
|
| 55 | # So instead, put a hardcoded 'jump to 0x1000' at offset 0x0, and put the
|
| 56 | # real FV at offset 0x1000
|
| 57 | #
|
| 58 | 0x00000000|0x00001000
|
| 59 | DATA = {
|
| 60 | !if $(ARCH) == AARCH64
|
| 61 | 0x00, 0x04, 0x00, 0x14 # 'b 0x1000' in AArch64 ASM
|
| 62 | !else
|
| 63 | 0xfe, 0x03, 0x00, 0xea # 'b 0x1000' in AArch32 ASM
|
| 64 | !endif
|
| 65 | }
|
| 66 |
|
| 67 | 0x00001000|0x001ff000
|
| 68 | gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
|
| 69 | FV = FVMAIN_COMPACT
|
| 70 |
|
| 71 |
|
| 72 | ################################################################################
|
| 73 | #
|
| 74 | # FV Section
|
| 75 | #
|
| 76 | # [FV] section is used to define what components or modules are placed within a flash
|
| 77 | # device file. This section also defines order the components and modules are positioned
|
| 78 | # within the image. The [FV] section consists of define statements, set statements and
|
| 79 | # module statements.
|
| 80 | #
|
| 81 | ################################################################################
|
| 82 |
|
| 83 | [FV.FvMain]
|
| 84 | BlockSize = 0x40
|
| 85 | NumBlocks = 0 # This FV gets compressed so make it just big enough
|
| 86 | FvAlignment = 16 # FV alignment and FV attributes setting.
|
| 87 | ERASE_POLARITY = 1
|
| 88 | MEMORY_MAPPED = TRUE
|
| 89 | STICKY_WRITE = TRUE
|
| 90 | LOCK_CAP = TRUE
|
| 91 | LOCK_STATUS = TRUE
|
| 92 | WRITE_DISABLED_CAP = TRUE
|
| 93 | WRITE_ENABLED_CAP = TRUE
|
| 94 | WRITE_STATUS = TRUE
|
| 95 | WRITE_LOCK_CAP = TRUE
|
| 96 | WRITE_LOCK_STATUS = TRUE
|
| 97 | READ_DISABLED_CAP = TRUE
|
| 98 | READ_ENABLED_CAP = TRUE
|
| 99 | READ_STATUS = TRUE
|
| 100 | READ_LOCK_CAP = TRUE
|
| 101 | READ_LOCK_STATUS = TRUE
|
| 102 |
|
| 103 | APRIORI DXE {
|
| 104 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
| 105 | INF ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
|
| 106 | }
|
| 107 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
| 108 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
| 109 | INF ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
|
| 110 |
|
| 111 | #
|
| 112 | # PI DXE Drivers producing Architectural Protocols (EFI Services)
|
| 113 | #
|
| 114 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
|
| 115 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
| 116 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
| 117 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
| 118 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
| 119 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
| 120 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
| 121 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
|
| 122 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
|
| 123 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
|
| 124 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
| 125 |
|
| 126 | #
|
| 127 | # Multiple Console IO support
|
| 128 | #
|
| 129 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
| 130 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
| 131 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
| 132 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
| 133 | INF EmbeddedPkg/SerialDxe/SerialDxe.inf
|
| 134 |
|
| 135 | INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
|
| 136 | INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
|
| 137 | INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
|
| 138 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
| 139 |
|
| 140 | #
|
| 141 | # FAT filesystem + GPT/MBR partitioning
|
| 142 | #
|
| 143 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
| 144 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
| 145 | INF FatBinPkg/EnhancedFatDxe/Fat.inf
|
| 146 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
| 147 |
|
| 148 | #
|
| 149 | # Platform Driver
|
| 150 | #
|
| 151 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
| 152 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
| 153 | INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
|
| 154 |
|
| 155 | #
|
| 156 | # UEFI application (Shell Embedded Boot Loader)
|
| 157 | #
|
| 158 | INF ShellBinPkg/UefiShell/UefiShell.inf
|
| 159 |
|
| 160 | #
|
| 161 | # Bds
|
| 162 | #
|
| 163 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
Olivier Martin | 43ac100 | 2014-10-13 10:55:38 +0000 | [diff] [blame] | 164 | !ifdef INTEL_BDS
|
| 165 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
| 166 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
| 167 | INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
|
| 168 | !else
|
Michael Casadevall | 6f5872b | 2014-09-18 18:11:24 +0000 | [diff] [blame] | 169 | INF ArmPlatformPkg/Bds/Bds.inf
|
Olivier Martin | 43ac100 | 2014-10-13 10:55:38 +0000 | [diff] [blame] | 170 | !endif
|
Michael Casadevall | 6f5872b | 2014-09-18 18:11:24 +0000 | [diff] [blame] | 171 |
|
| 172 | #
|
| 173 | # Networking stack
|
| 174 | #
|
| 175 | INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
|
| 176 | INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
|
| 177 | INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
|
| 178 | INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
|
| 179 | INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
|
| 180 | INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
|
| 181 | INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
|
| 182 | INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
|
| 183 | INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
|
| 184 | INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
| 185 | INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
| 186 | INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
| 187 |
|
| 188 | #
|
| 189 | # SCSI Bus and Disk Driver
|
| 190 | #
|
| 191 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
| 192 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
| 193 |
|
Laszlo Ersek | 1c5adbe | 2015-02-02 19:09:07 +0000 | [diff] [blame] | 194 | #
|
| 195 | # ACPI Support
|
| 196 | #
|
| 197 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
| 198 | INF OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
|
| 199 |
|
Laszlo Ersek | 10233c9 | 2015-02-23 16:04:11 +0000 | [diff] [blame] | 200 | #
|
| 201 | # PCI support
|
| 202 | #
|
| 203 | INF ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
| 204 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
| 205 | INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
|
| 206 |
|
Laszlo Ersek | d01c77b | 2015-02-23 16:04:25 +0000 | [diff] [blame^] | 207 | #
|
| 208 | # Video support
|
| 209 | #
|
| 210 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
| 211 | INF OvmfPkg/PlatformDxe/Platform.inf
|
| 212 |
|
Michael Casadevall | 6f5872b | 2014-09-18 18:11:24 +0000 | [diff] [blame] | 213 | [FV.FVMAIN_COMPACT]
|
| 214 | FvAlignment = 16
|
| 215 | ERASE_POLARITY = 1
|
| 216 | MEMORY_MAPPED = TRUE
|
| 217 | STICKY_WRITE = TRUE
|
| 218 | LOCK_CAP = TRUE
|
| 219 | LOCK_STATUS = TRUE
|
| 220 | WRITE_DISABLED_CAP = TRUE
|
| 221 | WRITE_ENABLED_CAP = TRUE
|
| 222 | WRITE_STATUS = TRUE
|
| 223 | WRITE_LOCK_CAP = TRUE
|
| 224 | WRITE_LOCK_STATUS = TRUE
|
| 225 | READ_DISABLED_CAP = TRUE
|
| 226 | READ_ENABLED_CAP = TRUE
|
| 227 | READ_STATUS = TRUE
|
| 228 | READ_LOCK_CAP = TRUE
|
| 229 | READ_LOCK_STATUS = TRUE
|
| 230 |
|
| 231 | APRIORI PEI {
|
| 232 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
| 233 | }
|
| 234 | INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
|
| 235 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
| 236 | INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
|
| 237 | INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
|
| 238 | INF ArmPkg/Drivers/CpuPei/CpuPei.inf
|
| 239 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
| 240 | INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
|
| 241 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
| 242 |
|
| 243 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
| 244 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
| 245 | SECTION FV_IMAGE = FVMAIN
|
| 246 | }
|
| 247 | }
|
| 248 |
|
| 249 |
|
| 250 | ################################################################################
|
| 251 | #
|
| 252 | # Rules are use with the [FV] section's module INF type to define
|
| 253 | # how an FFS file is created for a given INF file. The following Rule are the default
|
| 254 | # rules for the different module type. User can add the customized rules to define the
|
| 255 | # content of the FFS file.
|
| 256 | #
|
| 257 | ################################################################################
|
| 258 |
|
| 259 |
|
| 260 | ############################################################################
|
| 261 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
|
| 262 | ############################################################################
|
| 263 | #
|
| 264 | #[Rule.Common.DXE_DRIVER]
|
| 265 | # FILE DRIVER = $(NAMED_GUID) {
|
| 266 | # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 267 | # COMPRESS PI_STD {
|
| 268 | # GUIDED {
|
| 269 | # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 270 | # UI STRING="$(MODULE_NAME)" Optional
|
| 271 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 272 | # }
|
| 273 | # }
|
| 274 | # }
|
| 275 | #
|
| 276 | ############################################################################
|
| 277 |
|
| 278 | [Rule.Common.SEC]
|
| 279 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
|
| 280 | TE TE Align = 128 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 281 | }
|
| 282 |
|
| 283 | [Rule.Common.PEI_CORE]
|
| 284 | FILE PEI_CORE = $(NAMED_GUID) {
|
| 285 | TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 286 | UI STRING ="$(MODULE_NAME)" Optional
|
| 287 | }
|
| 288 |
|
| 289 | [Rule.Common.PEIM]
|
| 290 | FILE PEIM = $(NAMED_GUID) {
|
| 291 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 292 | TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 293 | UI STRING="$(MODULE_NAME)" Optional
|
| 294 | }
|
| 295 |
|
| 296 | [Rule.Common.PEIM.TIANOCOMPRESSED]
|
| 297 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
|
| 298 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 299 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
|
| 300 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 301 | UI STRING="$(MODULE_NAME)" Optional
|
| 302 | }
|
| 303 | }
|
| 304 |
|
| 305 | [Rule.Common.DXE_CORE]
|
| 306 | FILE DXE_CORE = $(NAMED_GUID) {
|
| 307 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 308 | UI STRING="$(MODULE_NAME)" Optional
|
| 309 | }
|
| 310 |
|
| 311 | [Rule.Common.UEFI_DRIVER]
|
| 312 | FILE DRIVER = $(NAMED_GUID) {
|
| 313 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 314 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 315 | UI STRING="$(MODULE_NAME)" Optional
|
| 316 | }
|
| 317 |
|
| 318 | [Rule.Common.DXE_DRIVER]
|
| 319 | FILE DRIVER = $(NAMED_GUID) {
|
| 320 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 321 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 322 | UI STRING="$(MODULE_NAME)" Optional
|
| 323 | }
|
| 324 |
|
| 325 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
| 326 | FILE DRIVER = $(NAMED_GUID) {
|
| 327 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
| 328 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 329 | UI STRING="$(MODULE_NAME)" Optional
|
| 330 | }
|
| 331 |
|
| 332 | [Rule.Common.UEFI_APPLICATION]
|
| 333 | FILE APPLICATION = $(NAMED_GUID) {
|
| 334 | UI STRING ="$(MODULE_NAME)" Optional
|
| 335 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
| 336 | }
|
| 337 |
|
| 338 | [Rule.Common.UEFI_DRIVER.BINARY]
|
| 339 | FILE DRIVER = $(NAMED_GUID) {
|
| 340 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
| 341 | PE32 PE32 |.efi
|
| 342 | UI STRING="$(MODULE_NAME)" Optional
|
| 343 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 344 | }
|
| 345 |
|
| 346 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
| 347 | FILE APPLICATION = $(NAMED_GUID) {
|
| 348 | PE32 PE32 |.efi
|
| 349 | UI STRING="$(MODULE_NAME)" Optional
|
| 350 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
| 351 | }
|
| 352 |
|
| 353 | [Rule.Common.USER_DEFINED.ACPITABLE]
|
| 354 | FILE FREEFORM = $(NAMED_GUID) {
|
| 355 | RAW ACPI |.acpi
|
| 356 | RAW ASL |.aml
|
| 357 | UI STRING="$(MODULE_NAME)" Optional
|
| 358 | }
|