Handle case in build.php when $A is not set
[people/meteger/rom-o-matic/.git] / 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       "PXE bootstrap loader image [Unload PXE stack] (.pxe)" => "pxe",
31       "PXE bootstrap loader keep [Keep PXE stack method 1] (.kpxe)" => "kpxe",
32       "PXE bootstrap loader keep [Keep PXE stack method 2] (.kkpxe)" => "kkpxe",
33     );
34
35 $flag_table = array (
36
37         // Begin General Options:
38
39         "HDR_MISC_OPTIONS"
40         => array ( 
41            "flag" => "HDR_MISC_OPTIONS",
42            "hide_from_user" => "yes",  // Hide even the header
43            "type" => "header",
44            "label" => "Miscellaneous Options" 
45                 ),
46
47         "PRODUCT_NAME"
48         => array (
49            "flag" => "PRODUCT_NAME",
50            "hide_from_user" => "yes",
51            "type" => "string",
52            "value" => "",
53            "cfgsec" => "general"
54            ),
55         
56         "PRODUCT_SHORT_NAME"
57         => array (
58            "flag" => "PRODUCT_SHORT_NAME",
59            "hide_from_user" => "yes",
60            "type" => "string",
61            "value" => "gPXE",
62            "cfgsec" => "general"
63            ),
64
65         // End General Options:
66
67         // Begin Console Options:
68         
69         "HDR_CONSOLE_OPTIONS"
70         => array ( 
71            "flag" => "HDR_CONSOLE_OPTIONS",
72            "type" => "header",
73            "label" => "Console Options" 
74                 ),
75         
76         "CONSOLE_PCBIOS"
77         => array (
78            "flag" => "CONSOLE_PCBIOS",
79            "type" => "on/off",
80            "value" => "on",
81            "cfgsec" => "console"
82            ),
83         
84         "CONSOLE_SERIAL"
85         => array (
86            "flag" => "CONSOLE_SERIAL",
87            "type" => "on/off",
88            "value" => "off",
89            "cfgsec" => "console"
90            ),
91         
92         "BANNER_TIMEOUT"
93         => array (
94            "flag" => "BANNER_TIMEOUT",
95            "type" => "integer",
96            "value" => "20",
97            "cfgsec" => "general"
98            ),
99         
100         // End Console Options
101
102         // Begin Network Protocol Options:
103         
104         "HDR_NETWORK_PROTOCOL_OPTIONS"
105         => array ( 
106            "flag" => "HDR_NETWORK_PROTOCOL_OPTIONS",
107            "hide_from_user" => "yes",  // Hide even the header
108            "type" => "header",
109            "label" => "Network Protocol Options" 
110                 ),
111         
112         "NET_PROTO_IPV4"
113         => array (
114            "flag" => "NET_PROTO_IPV4",
115            "type" => "on/off",
116            "value" => "on",
117            "hide_from_user" => "yes",
118            "cfgsec" => "general"
119            ),
120         
121         // End Network Protocol Options
122         
123         // Begin Serial Port configuration
124         
125         "HDR_SERIAL_PORT_OPTIONS"
126         => array ( 
127            "flag" => "HDR_SERIAL_PORT_OPTIONS",
128            "type" => "header",
129            "label" => "Serial Port Options" 
130                 ),
131         
132         "COMCONSOLE"
133         => array ( 
134            "flag" => "COMCONSOLE",
135            "type" => "integer", // usually hex, e.g. 0x378
136            "value" => "0x3F8",
137            "cfgsec" => "serial"
138                 ),
139         
140         "COMPRESERVE"
141         => array (
142            "flag" => "COMPRESERVE",
143            "type" => "on/off",
144            "value" => "off",
145            "cfgsec" => "serial"
146            ),
147         
148         "COMSPEED"
149         => array (
150            "flag" => "COMSPEED",
151            "type" => "integer",
152            "value" => "115200",
153            "cfgsec" => "serial"
154            ),
155         
156         "COMDATA"
157         => array (
158            "flag" => "COMDATA",
159            "type" => "integer",
160            "value" => "8",
161            "cfgsec" => "serial"
162            ),
163         
164         "COMPARITY"
165         => array (
166            "flag" => "COMPARITY",
167            "type" => "integer",
168            "value" => "0",
169            "cfgsec" => "serial"
170            ),
171         
172         "COMSTOP"
173         => array (
174            "flag" => "COMSTOP",
175            "type" => "integer",
176            "value" => "1",
177            "cfgsec" => "serial"
178            ),
179         
180         // End Serial Options
181         
182         // Begin Download Protocols
183         
184         "HDR_DOWNLOAD_PROTOCOLS"
185         => array ( 
186            "flag" => "HDR_DOWNLOAD_PROTOCOLS",
187            "type" => "header",
188            "label" => "Download Protocols"
189                 ),
190         
191         "DOWNLOAD_PROTO_TFTP"
192         => array (
193            "flag" => "DOWNLOAD_PROTO_TFTP",
194            "type" => "on/off",
195            "value" => "on",
196            "cfgsec" => "general"
197            ),
198         
199         "DOWNLOAD_PROTO_HTTP"
200         => array (
201            "flag" => "DOWNLOAD_PROTO_HTTP",
202            "type" => "on/off",
203            "value" => "on",
204            "cfgsec" => "general"
205            ),
206         
207         "DOWNLOAD_PROTO_HTTPS"
208         => array (
209            "flag" => "DOWNLOAD_PROTO_HTTPS",
210            "type" => "on/off",
211            "value" => "off",
212            "cfgsec" => "general"
213            ),
214         
215         "DOWNLOAD_PROTO_FTP"
216         => array (
217            "flag" => "DOWNLOAD_PROTO_FTP",
218            "type" => "on/off",
219            "value" => "off",
220            "cfgsec" => "general"
221            ),
222         
223         // End Download Protocols
224         
225         // Begin SAN boot protocols
226
227         "HDR_SANBOOT_PROTOCOLS"
228         => array ( 
229            "flag" => "HDR_SANBOOT_PROTOCOLS",
230            "type" => "header",
231            "label" => "SAN Boot Protocols"
232                 ),
233         
234         "SANBOOT_PROTO_ISCSI"
235         => array (
236            "flag" => "SANBOOT_PROTO_ISCSI",
237            "type" => "on/off",
238            "value" => "on",
239            "cfgsec" => "general"
240            ),
241         
242         "SANBOOT_PROTO_AOE"
243         => array (
244            "flag" => "SANBOOT_PROTO_AOE",
245            "type" => "on/off",
246            "value" => "on",
247            "cfgsec" => "general"
248            ),
249         
250         // End SAN boot protocols
251
252         // Begin Name resolution modules
253         
254         "HDR_NAME_RESOLUTION_MODULES"
255         => array (
256            "flag" => "HDR_NAME_RESOLUTION_MODULES",
257            "type" => "header",
258            "label" => "Name Resolution Modules"
259            ),
260         
261         "DNS_RESOLVER"
262         => array ( 
263            "flag" => "DNS_RESOLVER",
264            "type" => "on/off",
265            "value" => "on",
266            "cfgsec" => "general"
267                 ),
268         
269         "NMB_RESOLVER"
270         => array ( 
271            "flag" => "NMB_RESOLVER",
272            "type" => "on/off",
273            "value" => "off",
274            "hide_from_user" => "yes",
275            "cfgsec" => "general"
276                 ),
277         
278         // End Name resolution modules
279         
280         // Begin Image types
281         
282         "HDR_IMAGE_TYPES"
283         => array (
284            "flag" => "HDR_IMAGE_TYPES",
285            "type" => "header",
286            "label" => "Image Types",
287            ),
288         
289         "IMAGE_ELF"
290         => array (
291            "flag" => "IMAGE_ELF",
292            "type" => "on/off",
293            "value" => "on",
294            "cfgsec" => "general"
295            ),
296         
297         "IMAGE_NBI"
298         => array ( 
299            "flag" => "IMAGE_NBI",
300            "type" => "on/off",
301            "value" => "on",
302            "cfgsec" => "general"
303                 ),
304         
305         "IMAGE_MULTIBOOT"
306         => array (
307            "flag" => "IMAGE_MULTIBOOT",
308            "type" => "on/off",
309            "value" => "on",
310            "cfgsec" => "general"
311            ),
312         
313         "IMAGE_PXE"
314         => array (
315            "flag" => "IMAGE_PXE",
316            "type" => "on/off",
317            "value" => "on",
318            "cfgsec" => "general"
319            ),
320         
321         "IMAGE_SCRIPT"
322         => array (
323            "flag" => "IMAGE_SCRIPT",
324            "type" => "on/off",
325            "value" => "on",
326            "cfgsec" => "general"
327            ),
328         
329         "IMAGE_BZIMAGE"
330         => array (
331            "flag" => "IMAGE_BZIMAGE",
332            "type" => "on/off",
333            "value" => "on",
334            "cfgsec" => "general"
335            ),
336         
337         "IMAGE_COMBOOT"
338         => array (
339            "flag" => "IMAGE_COMBOOT",
340            "type" => "on/off",
341            "value" => "on",
342            "cfgsec" => "general"
343            ),
344         
345         // End Image types
346         
347         // Begin Command-line commands to include
348         
349         "HDR_COMMAND_LINE_OPTIONS"
350         => array (
351            "flag" => "HDR_COMMAND_LINE_OPTIONS",
352            "type" => "header",
353            "label" => "Command Line Options",
354            ),
355         
356         "AUTOBOOT_CMD"
357         => array (
358            "flag" => "AUTOBOOT_CMD",
359            "type" => "on/off",
360            "value" => "on",
361            "cfgsec" => "general"
362            ),
363         
364         "NVO_CMD"
365         => array (
366            "flag" => "NVO_CMD",
367            "type" => "on/off",
368            "value" => "on",
369            "cfgsec" => "general"
370            ),
371         
372         "CONFIG_CMD"
373         => array (
374            "flag" => "CONFIG_CMD",
375            "type" => "on/off",
376            "value" => "on",
377            "cfgsec" => "general"
378            ),
379         
380         "IFMGMT_CMD"
381         => array (
382            "flag" => "IFMGMT_CMD",
383            "type" => "on/off",
384            "value" => "on",
385            "cfgsec" => "general"
386            ),
387         
388         "ROUTE_CMD"
389         => array (
390            "flag" => "ROUTE_CMD",
391            "type" => "on/off",
392            "value" => "on",
393            "cfgsec" => "general"
394            ),
395         
396         "IMAGE_CMD"
397         => array (
398            "flag" => "IMAGE_CMD",
399            "type" => "on/off",
400            "value" => "on",
401            "cfgsec" => "general"
402            ),
403         
404         "DHCP_CMD"
405         => array ( 
406            "flag" => "DHCP_CMD",
407            "type" => "on/off",
408            "value" => "on",
409            "cfgsec" => "general"
410                 ),
411         
412         "SANBOOT_CMD"
413         => array ( 
414            "flag" => "SANBOOT_CMD",
415            "type" => "on/off",
416            "value" => "on",
417            "cfgsec" => "general"
418                 ),
419         
420         "LOGIN_CMD"
421         => array ( 
422            "flag" => "LOGIN_CMD",
423            "type" => "on/off",
424            "value" => "on",
425            "cfgsec" => "general"
426                 ),
427         
428         "TIME_CMD"
429         => array ( 
430            "flag" => "TIME_CMD",
431            "type" => "on/off",
432            "value" => "off",
433            "cfgsec" => "general"
434                 ),
435         
436         "DIGEST_CMD"
437         => array ( 
438            "flag" => "DIGEST_CMD",
439            "type" => "on/off",
440            "value" => "off",
441            "cfgsec" => "general"
442                 ),
443         
444         // End Command-line commands to include 
445 );
446
447 // For emacs:
448 // Local variables:
449 //  c-basic-offset: 4
450 //  c-indent-level: 4
451 //  tab-width: 4
452 // End:
453
454 ?>