summaryrefslogtreecommitdiff
path: root/Core/EM/EfiOsBootOptionNames/EfiOsBootOptionNames.sdl
blob: a4c1635218f5e1508924ba2c8080c17a3ed6baf6 (plain)
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
TOKEN
	Name  = "EfiOsBootOptionNames_SUPPORT"
	Value  = "1"
	Help  = "Main switch to enable EfiOsBootOptionNames support in Project"
	TokenType = Boolean
	TargetEQU = Yes
	TargetMAK = Yes
	Master = Yes
End

TOKEN
	Name  = "RemoveLegacyGptHddDevice"
	Value  = "0"
	Help  = "On. Filter GPT Format Hard disk of Legacy device."
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
End

TOKEN
	Name  = "RemoveBootOptionWithoutFile"
	Value  = "0"
	Help  = "On. Delete Boot Option when the file path in EfiOsBootOptionNamesFilePathItem doesn't exist."
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
End

TOKEN
	Name  = "BootOption_x64"
	Value  = "1"
	Help  = "Enable build support for 64 bit(x64/IA64)"
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
	Token = "x64_BUILD" "=" "1"
End

#TOKEN
#   Name  = "NORMALIZE_BOOT_OPTION_NAME"
#   Value  = "0"
#   Help  = "When the token is on, the Description of the existing boot options is regenerated during the boot option processing.\It is possible to override built time Description normalization policy using NormalizeBootOptionName variable."
#   TokenType = Boolean
#   TargetH = Yes
#End

#TOKEN
#   Name  = "NORMALIZE_BOOT_OPTION_DEVICE_PATH"
#   Value  = "0"
#   Help  = "When the token is on, the FilePathList of the existing boot options is regenerated during the boot option processing.\It is possible to override built time FilePathList normalization policy using NormalizeBootOptionDevicePath variable."
#   TokenType = Boolean
#   TargetH = Yes
#End

TOKEN
    Name  = "DefaultFwBootOption"
    Value  = "1"
    Help  = "Boot Option Created by this module, 1 - FW Boot Option , 0 - Non FW Boot Option."
    TokenType = Boolean
    TargetH = Yes
End

TOKEN
    Name  = "KeepDuplicateNonFWBootOption"
    Value  = "0"
    Help  = "0 - Delete Duplicate Non FW BootOption, 1 - Leave Non FW BootOption."
    TokenType = Boolean
    TargetH = Yes
End


TOKEN
    Name  = "DISPLAY_FULL_OPTION_NAME_WITH_FBO"
    Value  = "1"
    Help  = "Display full boot option name with Fixed Boot Order, such as: Windows Boot Manager(P0 DeviceName)."
    TokenType = Boolean
    Token = "FIXED_BOOT_ORDER_SUPPORT" "=" "1"
    TargetH = Yes
End

TOKEN
    Name  = "NEW_UEFI_OS_OPTION_ORDER_POLICY"
    Value  = "0"
    Help  = "The order of new UEFI OS boot option. \0:BoTagUefi order.\1:The Highest order.\2:The Lowest order."
    TokenType = Integer
    TargetH = Yes
End

TOKEN
	Name  = "CREATE_BOOT_OPTION_WITH_UEFI_FILE_NAME_POLICY"
	Value  = "1"
	Help  = "0: Create boot option by EfiOsBootOptionNamesFilePathItem, 1: Create boot option (UEFI OS) if can't find any other"
	TokenType = Boolean 
	TargetH = Yes
End

TOKEN
	Name  = "NAME_OF_UEFI_OS"
	Value  = 'L"UEFI OS"'
	Help  = "Name of UEFI OS, BootX64.efi or BootIa32.efi"
	TokenType = Expression
	TargetH = Yes
End

TOKEN
	Name  = "DEAL_WITH_EFI_OS_BOOT_OPTION_FUNC_PTR"
	Value  = "SearchBootablePathAndCreateBootOption"
	Help  = "Name of the function pointer of type DEAL_WITH_EFI_OS_BOOT_OPTION."
	TokenType = Expression
	TargetH = Yes
End

TOKEN
	Name  = "CREATE_TARGET_EFI_OS_BOOT_OPTION_FUNC_PTR"
	Value  = "CreateTargetEfiOsBootOption"
	Help  = "Name of the function pointer of type CREATE_TARGET_EFI_OS_BOOT_OPTION."
	TokenType = Expression
	TargetH = Yes
End

TOKEN
    Name  = "NEW_UEFI_OS_OPTION_ORDER_POLICY_ELINK_DEPENDENCY"
    Value  = "0"
    Help  = "To replace the Elink dependency on BcpBootOrder_SUPPORT token."
    TokenType = Integer
    TargetH = Yes
End

TOKEN
    Name  = "NEW_UEFI_OS_OPTION_ORDER_POLICY_ELINK_DEPENDENCY"
    Value  = "1"
    Help  = "To replace the Elink dependency on BcpBootOrder_SUPPORT token."
    TokenType = Integer
    TargetH = Yes
    Token = "BcpBootOrder_SUPPORT" "=" "1"
End

PATH
	Name  = "EfiOsBootOptionNames_DIR"
	Help  = "EfiOsBootOptionNames files source directory"
End

MODULE
	Help  = "Includes EfiOsBootOptionNames.mak to Project"
	File  = "EfiOsBootOptionNames.mak"
End

ELINK
	Name  = "$(BUILD_DIR)\EfiOsBootOptionNames.sdb"
	Parent  = "SETUP_SDBS"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "$(EfiOsBootOptionNames_DIR)\EfiOsBootOptionNames.sd"
	Parent  = "SETUP_DEFINITIONS"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "ChangeUefiBootNames,"
	Parent  = "ProcessEnterSetupHook,"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "AdjustEfiOsBootOrder,"
	Parent  = "ReadBootOptions,"
	InvokeOrder = BeforeParent
End

ELINK
	Name  = "CreateEfiOsBootOption,"
	Parent  = "FilterBootDeviceList,"
	InvokeOrder = AfterParent
End

ELINK
    Name  = "EfiOsName_NormalizeBootOptions,"
    Parent  = "NormalizeBootOptions,"
    InvokeOrder = ReplaceParent
End

ELINK
	Name  = "RemoveLegacyGptHdd,"
	Parent  = "BootOptionBootDeviceFilteringFunctions"
	Token = "RemoveLegacyGptHddDevice" "=" "1"
	Token = "CSM_SUPPORT" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
    Name  = "AdjustNewUefiOsOptionPriority,"
    Parent  = "SetBootOptionPriorities,"
    Token = "NEW_UEFI_OS_OPTION_ORDER_POLICY_ELINK_DEPENDENCY" "=" "0"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "AdjustNewUefiOsOptionPriority,"
    Parent  = "SetDefaultBcpBootOptionPriorities,"
    Token = "NEW_UEFI_OS_OPTION_ORDER_POLICY_ELINK_DEPENDENCY" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "SaveEfiOsBootOrder,"
    Parent  = "SaveBootOptions,"
    InvokeOrder = AfterParent 
    Token = "DefaultFwBootOption" "=" "0"
End

ELINK
	Name  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "{TstrW(\\EFI\\Microsoft\\Boot\\bootmgfw.efi), TstrW(Windows Boot Manager)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\Suse\\elilo.efi), TstrW(Suse Boot Manager)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\Ubuntu\\grubx64.efi), TstrW(ubuntu)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\Redhat\\elilo.efi), TstrW(RedHat Boot Manager)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\Redhat\\grub.efi), TstrW(RedHat Boot Manager)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End

ELINK
    Name  = "{TstrW(\\EFI\\Redhat\\shim.efi), TstrW(RedHat Boot Manager)},"
    Parent  = "EfiOsBootOptionNamesFilePathItem"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "{TstrW(\\EFI\\Centos\\shim.efi), TstrW(CentOS)},"
    Parent  = "EfiOsBootOptionNamesFilePathItem"
    InvokeOrder = AfterParent
End

ELINK
    Name = "{TstrW(\\EFI\\opensuse\\grubx64.efi), TstrW(opensuse)},"
    Parent = "EfiOsBootOptionNamesFilePathItem"
    InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\BOOT\\BOOTX64.EFI), TstrW(UEFI OS)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	Token = "x64_BUILD" "=" "1"
	Token = "CREATE_BOOT_OPTION_WITH_UEFI_FILE_NAME_POLICY" "=" "0"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\BOOT\\BOOTIA32.EFI), TstrW(UEFI OS)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	Token = "x64_BUILD" "=" "0"
	Token = "CREATE_BOOT_OPTION_WITH_UEFI_FILE_NAME_POLICY" "=" "0"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{TstrW(\\EFI\\debian\\grubx64.efi), TstrW(debian)},"
	Parent  = "EfiOsBootOptionNamesFilePathItem"
	InvokeOrder = AfterParent
End