flag-table.php 10KB

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