forked from feizwang/quarkfsp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
QuarkFsp1_1.fdf
201 lines (181 loc) · 6.93 KB
/
QuarkFsp1_1.fdf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
## @file
# FDF file of Firmware Service Package (FSP) for Intel Quark X1000 SoC.
#
# This package provides specific modules of FSP for Intel Quark X1000 SoC.
# Copyright (c) 2013 - 2016 Intel Corporation.
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
##
################################################################################
#
# Defines Section - statements that will be processed to create a Makefile.
#
################################################################################
[Defines]
DEFINE FLASH_BASE = 0x80000000 #The base address of the FSP
DEFINE FLASH_SIZE = 0x00040000 #The flash size in bytes of the FSP
DEFINE FLASH_BLOCK_SIZE = 0x00001000 #The block size
DEFINE FLASH_NUM_BLOCKS = 0x40 #The number of blocks
DEFINE FLASH_FSP_FV2_OFFSET = 0x00000000
DEFINE FLASH_FSP_FV2_SIZE = 0x00008000
DEFINE FLASH_FSP_FV1_OFFSET = 0x00008000
DEFINE FLASH_FSP_FV1_SIZE = 0x00038000
################################################################################
#
# FD Section
# The [FD] Section is made up of the definition statements and a
# description of what goes into the Flash Device Image. Each FD section
# defines one flash "device" image. A flash device image may be one of
# the following: Removable media bootable image (like a boot floppy
# image,) an Option ROM image (that would be "flashed" into an add-in
# card,) a System "Flash" image (that would be burned into a system's
# flash) or an Update ("Capsule") image that will be used to update and
# existing system flash.
#
################################################################################
[FD.QUARK]
BaseAddress = $(FLASH_BASE) | gIntelFspPkgTokenSpaceGuid.PcdFspAreaBaseAddress
Size = $(FLASH_SIZE) | gIntelFspPkgTokenSpaceGuid.PcdFspAreaSize
ErasePolarity = 1
BlockSize = $(FLASH_BLOCK_SIZE)
NumBlocks = $(FLASH_NUM_BLOCKS)
SET gIntelFspPkgTokenSpaceGuid.PcdFspBootFirmwareVolumeBase = $(FLASH_BASE) + $(FLASH_FSP_FV2_SIZE)
#FSP FV2
$(FLASH_FSP_FV2_OFFSET)|$(FLASH_FSP_FV2_SIZE)
gQuarkFspTokenSpaceGuid.PcdFspFv2Base|gQuarkFspTokenSpaceGuid.PcdFspFv2Size
FV = QUARKFV2
#FSP FV1
$(FLASH_FSP_FV1_OFFSET)|$(FLASH_FSP_FV1_SIZE)
gQuarkFspTokenSpaceGuid.PcdFspFv1Base|gQuarkFspTokenSpaceGuid.PcdFspFv1Size
FV = QUARKFV1
################################################################################
#
# FV Section
#
# [FV] section is used to define what components or modules are placed within a flash
# device file. This section also defines order the components and modules are positioned
# within the image. The [FV] section consists of define statements, set statements and
# module statements.
#
################################################################################
[FV.QUARKFV1]
BlockSize = 0x00001000
FvAlignment = 16 #FV alignment and FV attributes setting.
ERASE_POLARITY = 1
MEMORY_MAPPED = TRUE
STICKY_WRITE = TRUE
LOCK_CAP = TRUE
LOCK_STATUS = TRUE
WRITE_DISABLED_CAP = TRUE
WRITE_ENABLED_CAP = TRUE
WRITE_STATUS = TRUE
WRITE_LOCK_CAP = TRUE
WRITE_LOCK_STATUS = TRUE
READ_DISABLED_CAP = TRUE
READ_ENABLED_CAP = TRUE
READ_STATUS = TRUE
READ_LOCK_CAP = TRUE
READ_LOCK_STATUS = TRUE
FvNameGuid = 52F1AFB6-78A6-448f-8274-F370549AC5D0
#
# Tell the PEI dispatcher that FSP does not require the PCD PEIM.
# Without the APRIORI, the dispatcher automatically adds a dependency
# on the PCD PEIM!
#
APRIORI PEI {
INF QuarkFspPkg/MemoryInitPeim/MemoryInitPeim.inf
}
#
# FSP Description file
#
FILE RAW = D9093578-08EB-44DF-B9D8-D0C1D3D55D96 {
SECTION RAW = QuarkFspPkg/FspDescription/FspDescription.txt
}
#
# FSP UPD/VPD binaries
#
!ifndef $(CFG_PREBUILD)
FILE RAW = 06A70056-3D0F-4A94-A743-5491CC9391D3 {
SECTION RAW = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/FV/$(VPD_TOOL_GUID).bin
SECTION RAW = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/FV/$(UPD_TOOL_GUID).bin
}
!endif
#
# It is important to keep the proper order for these PEIMs
# for this implementation
#
INF RuleOverride = RELOC QuarkFspPkg/Override/IntelFspPkg/FspSecCore/FspSecCore.inf
INF MdeModulePkg/Core/Pei/PeiMain.inf
INF QuarkFspPkg/MemoryInitPeim/MemoryInitPeim.inf
[FV.QUARKFV2]
BlockSize = 0x00001000
FvAlignment = 16 #FV alignment and FV attributes setting.
ERASE_POLARITY = 1
MEMORY_MAPPED = TRUE
STICKY_WRITE = TRUE
LOCK_CAP = TRUE
LOCK_STATUS = TRUE
WRITE_DISABLED_CAP = TRUE
WRITE_ENABLED_CAP = TRUE
WRITE_STATUS = TRUE
WRITE_LOCK_CAP = TRUE
WRITE_LOCK_STATUS = TRUE
READ_DISABLED_CAP = TRUE
READ_ENABLED_CAP = TRUE
READ_STATUS = TRUE
READ_LOCK_CAP = TRUE
READ_LOCK_STATUS = TRUE
FvNameGuid = 1B5C27FE-F01C-4fbc-AEAE-341B2E992A17
#
# FSP header
#
INF RuleOverride = FSPHEADER QuarkFspPkg/FspHeader/FspHeader.inf
################################################################################
#
# Rules are use with the [FV] section's module INF type to define
# how an FFS file is created for a given INF file. The following Rule are the default
# rules for the different module type. User can add the customized rules to define the
# content of the FFS file.
#
################################################################################
[Rule.Common.SEC]
FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
RAW BIN Align = 16 |.com
}
[Rule.Common.SEC.RELOC]
FILE SEC = $(NAMED_GUID) {
TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
RAW BIN Align = 16 |.com
}
[Rule.Common.PEI_CORE]
FILE PEI_CORE = $(NAMED_GUID) {
TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}
[Rule.Common.PEIM.NORELOC]
FILE PEIM = $(NAMED_GUID) RELOCS_STRIPPED {
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}
[Rule.Common.PEIM]
FILE PEIM = $(NAMED_GUID) {
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
UI STRING="$(MODULE_NAME)" Optional
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
}
[Rule.Common.USER_DEFINED.FSPHEADER]
FILE RAW = $(NAMED_GUID) {
RAW BIN |.acpi
}