]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtQemu.fdf
OvmfPkg/Csm/LegacyBiosDxe: Update to make it build for OVMF
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemu.fdf
1 #
2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 # Copyright (c) 2014, Linaro Limited. All rights reserved.
4 # Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8
9 ################################################################################
10 #
11 # FD Section
12 # The [FD] Section is made up of the definition statements and a
13 # description of what goes into the Flash Device Image. Each FD section
14 # defines one flash "device" image. A flash device image may be one of
15 # the following: Removable media bootable image (like a boot floppy
16 # image,) an Option ROM image (that would be "flashed" into an add-in
17 # card,) a System "Flash" image (that would be burned into a system's
18 # flash) or an Update ("Capsule") image that will be used to update and
19 # existing system flash.
20 #
21 ################################################################################
22
23 [FD.QEMU_EFI]
24 BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # QEMU assigns 0 - 0x8000000 for a BootROM
25 Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
26 ErasePolarity = 1
27
28 # This one is tricky, it must be: BlockSize * NumBlocks = Size
29 BlockSize = 0x00001000
30 NumBlocks = 0x200
31
32 ################################################################################
33 #
34 # Following are lists of FD Region layout which correspond to the locations of different
35 # images within the flash device.
36 #
37 # Regions must be defined in ascending order and may not overlap.
38 #
39 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
40 # the pipe "|" character, followed by the size of the region, also in hex with the leading
41 # "0x" characters. Like:
42 # Offset|Size
43 # PcdOffsetCName|PcdSizeCName
44 # RegionType <FV, DATA, or FILE>
45 #
46 ################################################################################
47
48 #
49 # UEFI has trouble dealing with FVs that reside at physical address 0x0.
50 # So instead, put a hardcoded 'jump to 0x1000' at offset 0x0, and put the
51 # real FV at offset 0x1000
52 #
53 0x00000000|0x00001000
54 DATA = {
55 !if $(ARCH) == AARCH64
56 0x00, 0x04, 0x00, 0x14 # 'b 0x1000' in AArch64 ASM
57 !else
58 0xfe, 0x03, 0x00, 0xea # 'b 0x1000' in AArch32 ASM
59 !endif
60 }
61
62 0x00001000|0x001ff000
63 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
64 FV = FVMAIN_COMPACT
65
66 !include VarStore.fdf.inc
67
68 ################################################################################
69 #
70 # FV Section
71 #
72 # [FV] section is used to define what components or modules are placed within a flash
73 # device file. This section also defines order the components and modules are positioned
74 # within the image. The [FV] section consists of define statements, set statements and
75 # module statements.
76 #
77 ################################################################################
78
79 !include ArmVirtQemuFvMain.fdf.inc
80
81 [FV.FVMAIN_COMPACT]
82 FvAlignment = 16
83 ERASE_POLARITY = 1
84 MEMORY_MAPPED = TRUE
85 STICKY_WRITE = TRUE
86 LOCK_CAP = TRUE
87 LOCK_STATUS = TRUE
88 WRITE_DISABLED_CAP = TRUE
89 WRITE_ENABLED_CAP = TRUE
90 WRITE_STATUS = TRUE
91 WRITE_LOCK_CAP = TRUE
92 WRITE_LOCK_STATUS = TRUE
93 READ_DISABLED_CAP = TRUE
94 READ_ENABLED_CAP = TRUE
95 READ_STATUS = TRUE
96 READ_LOCK_CAP = TRUE
97 READ_LOCK_STATUS = TRUE
98
99 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
100 INF MdeModulePkg/Core/Pei/PeiMain.inf
101 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
102 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
103 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
104 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
105 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
106 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
107
108 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
109 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
110 SECTION FV_IMAGE = FVMAIN
111 }
112 }
113
114 !include ArmVirtRules.fdf.inc