[contrib] Add .hrom format to rom-o-matic
[people/mcb30/gpxe.git] / contrib / rom-o-matic / flag-table.php
1 <?php // -*- Mode: PHP; -*-
2
3 /**
4  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
5  * Copyright (C) 2009 Entity Cyber, Inc.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of the
10  * License, or any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21
22 $ofmts = array
23         ( "Floppy bootable image (.dsk)" => "dsk",
24           "SYSLINUX-based bootable floppy image (.sdsk)" => "sdsk",
25           "ISO bootable image (.iso)" => "iso",
26           "ISO bootable image with legacy floppy emulation (.liso)" => "liso",
27           "Linux kernel (SYSLINUX/GRUB/LILO) loadable image (.lkrn)" => "lkrn",
28           "USB Keychain disk image (.usb)" => "usb",
29           "ROM binary (flashable) image (.rom)" => "rom",
30           "ROM binary (flashable) for problem PMM BIOSES  (.hrom)" => "hrom",
31           "PXE bootstrap loader image [Unload PXE stack] (.pxe)" => "pxe",
32           "PXE bootstrap loader keep [Keep PXE stack method 1] (.kpxe)" => "kpxe",
33           "PXE bootstrap loader keep [Keep PXE stack method 2] (.kkpxe)" => "kkpxe",
34         );
35
36 $flag_table = array (
37
38         // Begin General Options:
39
40         "HDR_MISC_OPTIONS"
41         => array (
42            "flag" => "HDR_MISC_OPTIONS",
43            "hide_from_user" => "yes",  // Hide even the header
44            "type" => "header",
45            "label" => "Miscellaneous Options"
46                 ),
47
48         "PRODUCT_NAME"
49         => array (
50            "flag" => "PRODUCT_NAME",
51            "hide_from_user" => "yes",
52            "type" => "string",
53            "value" => "",
54            "cfgsec" => "general"
55            ),
56
57         "PRODUCT_SHORT_NAME"
58         => array (
59            "flag" => "PRODUCT_SHORT_NAME",
60            "hide_from_user" => "yes",
61            "type" => "string",
62            "value" => "gPXE",
63            "cfgsec" => "general"
64            ),
65
66         // End General Options:
67
68         // Begin Console Options:
69
70         "HDR_CONSOLE_OPTIONS"
71         => array (
72            "flag" => "HDR_CONSOLE_OPTIONS",
73            "type" => "header",
74            "label" => "Console Options"
75                 ),
76
77         "CONSOLE_PCBIOS"
78         => array (
79            "flag" => "CONSOLE_PCBIOS",
80            "type" => "on/off",
81            "value" => "on",
82            "cfgsec" => "console"
83            ),
84
85         "CONSOLE_SERIAL"
86         => array (
87            "flag" => "CONSOLE_SERIAL",
88            "type" => "on/off",
89            "value" => "off",
90            "cfgsec" => "console"
91            ),
92
93         "BANNER_TIMEOUT"
94         => array (
95            "flag" => "BANNER_TIMEOUT",
96            "type" => "integer",
97            "value" => "20",
98            "cfgsec" => "general"
99            ),
100
101         // End Console Options
102
103         // Begin Network Protocol Options:
104
105         "HDR_NETWORK_PROTOCOL_OPTIONS"
106         => array (
107            "flag" => "HDR_NETWORK_PROTOCOL_OPTIONS",
108            "hide_from_user" => "yes",  // Hide even the header
109            "type" => "header",
110            "label" => "Network Protocol Options"
111                 ),
112
113         "NET_PROTO_IPV4"
114         => array (
115            "flag" => "NET_PROTO_IPV4",
116            "type" => "on/off",
117            "value" => "on",
118            "hide_from_user" => "yes",
119            "cfgsec" => "general"
120            ),
121
122         // End Network Protocol Options
123
124         // Begin Serial Port configuration
125
126         "HDR_SERIAL_PORT_OPTIONS"
127         => array (
128            "flag" => "HDR_SERIAL_PORT_OPTIONS",
129            "type" => "header",
130            "label" => "Serial Port Options"
131                 ),
132
133         "COMCONSOLE"
134         => array (
135            "flag" => "COMCONSOLE",
136            "type" => "integer-hex", // e.g. 0x378
137            "value" => "0x3F8",
138            "cfgsec" => "serial"
139                 ),
140
141         "COMPRESERVE"
142         => array (
143            "flag" => "COMPRESERVE",
144            "type" => "on/off",
145            "value" => "off",
146            "cfgsec" => "serial"
147            ),
148
149         "COMSPEED"
150         => array (
151            "flag" => "COMSPEED",
152            "type" => "integer",
153            "value" => "115200",
154            "cfgsec" => "serial"
155            ),
156
157         "COMDATA"
158         => array (
159            "flag" => "COMDATA",
160            "type" => "integer",
161            "value" => "8",
162            "cfgsec" => "serial"
163            ),
164
165         "COMPARITY"
166         => array (
167            "flag" => "COMPARITY",
168            "type" => "integer",
169            "value" => "0",
170            "cfgsec" => "serial"
171            ),
172
173         "COMSTOP"
174         => array (
175            "flag" => "COMSTOP",
176            "type" => "integer",
177            "value" => "1",
178            "cfgsec" => "serial"
179            ),
180
181         // End Serial Options
182
183         // Begin Download Protocols
184
185         "HDR_DOWNLOAD_PROTOCOLS"
186         => array (
187            "flag" => "HDR_DOWNLOAD_PROTOCOLS",
188            "type" => "header",
189            "label" => "Download Protocols"
190                 ),
191
192         "DOWNLOAD_PROTO_TFTP"
193         => array (
194            "flag" => "DOWNLOAD_PROTO_TFTP",
195            "type" => "on/off",
196            "value" => "on",
197            "cfgsec" => "general"
198            ),
199
200         "DOWNLOAD_PROTO_HTTP"
201         => array (
202            "flag" => "DOWNLOAD_PROTO_HTTP",
203            "type" => "on/off",
204            "value" => "on",
205            "cfgsec" => "general"
206            ),
207
208         "DOWNLOAD_PROTO_HTTPS"
209         => array (
210            "flag" => "DOWNLOAD_PROTO_HTTPS",
211            "type" => "on/off",
212            "value" => "off",
213            "cfgsec" => "general"
214            ),
215
216         "DOWNLOAD_PROTO_FTP"
217         => array (
218            "flag" => "DOWNLOAD_PROTO_FTP",
219            "type" => "on/off",
220            "value" => "off",
221            "cfgsec" => "general"
222            ),
223
224         // End Download Protocols
225
226         // Begin SAN boot protocols
227
228         "HDR_SANBOOT_PROTOCOLS"
229         => array (
230            "flag" => "HDR_SANBOOT_PROTOCOLS",
231            "type" => "header",
232            "label" => "SAN Boot Protocols"
233                 ),
234
235         "SANBOOT_PROTO_ISCSI"
236         => array (
237            "flag" => "SANBOOT_PROTO_ISCSI",
238            "type" => "on/off",
239            "value" => "on",
240            "cfgsec" => "general"
241            ),
242
243         "SANBOOT_PROTO_AOE"
244         => array (
245            "flag" => "SANBOOT_PROTO_AOE",
246            "type" => "on/off",
247            "value" => "on",
248            "cfgsec" => "general"
249            ),
250
251         // End SAN boot protocols
252
253         // Begin Name resolution modules
254
255         "HDR_NAME_RESOLUTION_MODULES"
256         => array (
257            "flag" => "HDR_NAME_RESOLUTION_MODULES",
258            "type" => "header",
259            "label" => "Name Resolution Modules"
260            ),
261
262         "DNS_RESOLVER"
263         => array (
264            "flag" => "DNS_RESOLVER",
265            "type" => "on/off",
266            "value" => "on",
267            "cfgsec" => "general"
268                 ),
269
270         "NMB_RESOLVER"
271         => array (
272            "flag" => "NMB_RESOLVER",
273            "type" => "on/off",
274            "value" => "off",
275            "hide_from_user" => "yes",
276            "cfgsec" => "general"
277                 ),
278
279         // End Name resolution modules
280
281         // Begin Image types
282
283         "HDR_IMAGE_TYPES"
284         => array (
285            "flag" => "HDR_IMAGE_TYPES",
286            "type" => "header",
287            "label" => "Image Types",
288            ),
289
290         "IMAGE_ELF"
291         => array (
292            "flag" => "IMAGE_ELF",
293            "type" => "on/off",
294            "value" => "on",
295            "cfgsec" => "general"
296            ),
297
298         "IMAGE_NBI"
299         => array (
300            "flag" => "IMAGE_NBI",
301            "type" => "on/off",
302            "value" => "on",
303            "cfgsec" => "general"
304                 ),
305
306         "IMAGE_MULTIBOOT"
307         => array (
308            "flag" => "IMAGE_MULTIBOOT",
309            "type" => "on/off",
310            "value" => "on",
311            "cfgsec" => "general"
312            ),
313
314         "IMAGE_PXE"
315         => array (
316            "flag" => "IMAGE_PXE",
317            "type" => "on/off",
318            "value" => "on",
319            "cfgsec" => "general"
320            ),
321
322         "IMAGE_SCRIPT"
323         => array (
324            "flag" => "IMAGE_SCRIPT",
325            "type" => "on/off",
326            "value" => "on",
327            "cfgsec" => "general"
328            ),
329
330         "IMAGE_BZIMAGE"
331         => array (
332            "flag" => "IMAGE_BZIMAGE",
333            "type" => "on/off",
334            "value" => "on",
335            "cfgsec" => "general"
336            ),
337
338         "IMAGE_COMBOOT"
339         => array (
340            "flag" => "IMAGE_COMBOOT",
341            "type" => "on/off",
342            "value" => "on",
343            "cfgsec" => "general"
344            ),
345
346         // End Image types
347
348         // Begin Command-line commands to include
349
350         "HDR_COMMAND_LINE_OPTIONS"
351         => array (
352            "flag" => "HDR_COMMAND_LINE_OPTIONS",
353            "type" => "header",
354            "label" => "Command Line Options",
355            ),
356
357         "AUTOBOOT_CMD"
358         => array (
359            "flag" => "AUTOBOOT_CMD",
360            "type" => "on/off",
361            "value" => "on",
362            "cfgsec" => "general"
363            ),
364
365         "NVO_CMD"
366         => array (
367            "flag" => "NVO_CMD",
368            "type" => "on/off",
369            "value" => "on",
370            "cfgsec" => "general"
371            ),
372
373         "CONFIG_CMD"
374         => array (
375            "flag" => "CONFIG_CMD",
376            "type" => "on/off",
377            "value" => "on",
378            "cfgsec" => "general"
379            ),
380
381         "IFMGMT_CMD"
382         => array (
383            "flag" => "IFMGMT_CMD",
384            "type" => "on/off",
385            "value" => "on",
386            "cfgsec" => "general"
387            ),
388
389         "IWMGMT_CMD"
390         => array (
391            "flag" => "IWMGMT_CMD",
392            "type" => "on/off",
393            "value" => "on",
394            "cfgsec" => "general"
395            ),
396
397         "ROUTE_CMD"
398         => array (
399            "flag" => "ROUTE_CMD",
400            "type" => "on/off",
401            "value" => "on",
402            "cfgsec" => "general"
403            ),
404
405         "IMAGE_CMD"
406         => array (
407            "flag" => "IMAGE_CMD",
408            "type" => "on/off",
409            "value" => "on",
410            "cfgsec" => "general"
411            ),
412
413         "DHCP_CMD"
414         => array (
415            "flag" => "DHCP_CMD",
416            "type" => "on/off",
417            "value" => "on",
418            "cfgsec" => "general"
419                 ),
420
421         "SANBOOT_CMD"
422         => array (
423            "flag" => "SANBOOT_CMD",
424            "type" => "on/off",
425            "value" => "on",
426            "cfgsec" => "general"
427                 ),
428
429         "LOGIN_CMD"
430         => array (
431            "flag" => "LOGIN_CMD",
432            "type" => "on/off",
433            "value" => "on",
434            "cfgsec" => "general"
435                 ),
436
437         "TIME_CMD"
438         => array (
439            "flag" => "TIME_CMD",
440            "type" => "on/off",
441            "value" => "off",
442            "cfgsec" => "general"
443                 ),
444
445         "DIGEST_CMD"
446         => array (
447            "flag" => "DIGEST_CMD",
448            "type" => "on/off",
449            "value" => "off",
450            "cfgsec" => "general"
451                 ),
452
453         // End Command-line commands to include
454
455         // Begin Wireless options
456
457         "HDR_WIRELESS_OPTIONS"
458         => array (
459            "flag" => "HDR_WIRELESS_OPTIONS",
460            "type" => "header",
461            "label" => "Wireless Interface Options",
462            ),
463
464         "CRYPTO_80211_WEP"
465         => array (
466            "flag" => "CRYPTO_80211_WEP",
467            "type" => "on/off",
468            "value" => "on",
469            "cfgsec" => "general"
470            ),
471
472         "CRYPTO_80211_WPA"
473         => array (
474            "flag" => "CRYPTO_80211_WPA",
475            "type" => "on/off",
476            "value" => "on",
477            "cfgsec" => "general"
478            ),
479
480         "CRYPTO_80211_WPA2"
481         => array (
482            "flag" => "CRYPTO_80211_WPA2",
483            "type" => "on/off",
484            "value" => "on",
485            "cfgsec" => "general"
486            ),
487
488         // End Wireless options
489
490 );
491
492 // For emacs:
493 // Local variables:
494 //      c-basic-offset: 4
495 //      c-indent-level: 4
496 //      tab-width: 4
497 // End:
498
499 ?>