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