Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. /*
  2. * This program is free software; you can redistribute it and/or
  3. * modify it under the terms of the GNU General Public License as
  4. * published by the Free Software Foundation; either version 2 of the
  5. * License, or (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but
  8. * WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. * General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. * 02110-1301, USA.
  16. *
  17. * You can also choose to distribute this program under the terms of
  18. * the Unmodified Binary Distribution Licence (as given in the file
  19. * COPYING.UBDL), provided that you have satisfied its requirements.
  20. */
  21. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  22. #include <config/general.h>
  23. #include <config/console.h>
  24. #include <config/sideband.h>
  25. #include <config/settings.h>
  26. /** @file
  27. *
  28. * Configuration options
  29. *
  30. * This file contains macros that pull various objects into the link
  31. * based on definitions in configuration header files. Ideally it
  32. * should be the only place in iPXE where one might need to use #ifdef
  33. * for compile-time options.
  34. *
  35. * In the fairly common case where an object should only be considered
  36. * for inclusion if the subsystem it depends on is present, its
  37. * configuration macros should be placed in a file named
  38. * <tt>config_<i>subsystem</i>.c</tt>, where @e subsystem is the
  39. * object basename of the main source file for that subsystem. The
  40. * build system will pull in that file if @c subsystem.c is included
  41. * in the final iPXE executable built.
  42. */
  43. /*
  44. * Drag in all requested console types
  45. *
  46. */
  47. #ifdef CONSOLE_PCBIOS
  48. REQUIRE_OBJECT ( bios_console );
  49. #endif
  50. #ifdef CONSOLE_SERIAL
  51. REQUIRE_OBJECT ( serial_console );
  52. #endif
  53. #ifdef CONSOLE_DIRECT_VGA
  54. REQUIRE_OBJECT ( video_subr );
  55. #endif
  56. #ifdef CONSOLE_PC_KBD
  57. REQUIRE_OBJECT ( pc_kbd );
  58. #endif
  59. #ifdef CONSOLE_SYSLOG
  60. REQUIRE_OBJECT ( syslog );
  61. #endif
  62. #ifdef CONSOLE_SYSLOGS
  63. REQUIRE_OBJECT ( syslogs );
  64. #endif
  65. #ifdef CONSOLE_EFI
  66. REQUIRE_OBJECT ( efi_console );
  67. #endif
  68. #ifdef CONSOLE_LINUX
  69. REQUIRE_OBJECT ( linux_console );
  70. #endif
  71. #ifdef CONSOLE_VMWARE
  72. REQUIRE_OBJECT ( vmconsole );
  73. #endif
  74. #ifdef CONSOLE_DEBUGCON
  75. REQUIRE_OBJECT ( debugcon );
  76. #endif
  77. #ifdef CONSOLE_VESAFB
  78. REQUIRE_OBJECT ( vesafb );
  79. #endif
  80. /*
  81. * Drag in all requested network protocols
  82. *
  83. */
  84. #ifdef NET_PROTO_IPV4
  85. REQUIRE_OBJECT ( ipv4 );
  86. #endif
  87. #ifdef NET_PROTO_IPV6
  88. REQUIRE_OBJECT ( ipv6 );
  89. #endif
  90. /*
  91. * Drag in all requested PXE support
  92. *
  93. */
  94. #ifdef PXE_MENU
  95. REQUIRE_OBJECT ( pxemenu );
  96. #endif
  97. #ifdef PXE_STACK
  98. REQUIRE_OBJECT ( pxe_call );
  99. #endif
  100. /*
  101. * Drag in all requested download protocols
  102. *
  103. */
  104. #ifdef DOWNLOAD_PROTO_TFTP
  105. REQUIRE_OBJECT ( tftp );
  106. #endif
  107. #ifdef DOWNLOAD_PROTO_HTTP
  108. REQUIRE_OBJECT ( http );
  109. #endif
  110. #ifdef DOWNLOAD_PROTO_HTTPS
  111. REQUIRE_OBJECT ( https );
  112. #endif
  113. #ifdef DOWNLOAD_PROTO_FTP
  114. REQUIRE_OBJECT ( ftp );
  115. #endif
  116. #ifdef DOWNLOAD_PROTO_NFS
  117. REQUIRE_OBJECT ( nfs_open );
  118. #endif
  119. #ifdef DOWNLOAD_PROTO_SLAM
  120. REQUIRE_OBJECT ( slam );
  121. #endif
  122. /*
  123. * Drag in all requested SAN boot protocols
  124. *
  125. */
  126. #ifdef SANBOOT_PROTO_ISCSI
  127. REQUIRE_OBJECT ( iscsi );
  128. #endif
  129. /*
  130. * Drag in all requested resolvers
  131. *
  132. */
  133. #ifdef DNS_RESOLVER
  134. REQUIRE_OBJECT ( dns );
  135. #endif
  136. /*
  137. * Drag in all requested image formats
  138. *
  139. */
  140. #ifdef IMAGE_NBI
  141. REQUIRE_OBJECT ( nbi );
  142. #endif
  143. #ifdef IMAGE_ELF
  144. REQUIRE_OBJECT ( elfboot );
  145. #endif
  146. #ifdef IMAGE_MULTIBOOT
  147. REQUIRE_OBJECT ( multiboot );
  148. #endif
  149. #ifdef IMAGE_PXE
  150. REQUIRE_OBJECT ( pxe_image );
  151. #endif
  152. #ifdef IMAGE_SCRIPT
  153. REQUIRE_OBJECT ( script );
  154. #endif
  155. #ifdef IMAGE_BZIMAGE
  156. REQUIRE_OBJECT ( bzimage );
  157. #endif
  158. #ifdef IMAGE_ELTORITO
  159. REQUIRE_OBJECT ( eltorito );
  160. #endif
  161. #ifdef IMAGE_COMBOOT
  162. REQUIRE_OBJECT ( comboot );
  163. REQUIRE_OBJECT ( com32 );
  164. REQUIRE_OBJECT ( comboot_call );
  165. REQUIRE_OBJECT ( com32_call );
  166. REQUIRE_OBJECT ( com32_wrapper );
  167. REQUIRE_OBJECT ( comboot_resolv );
  168. #endif
  169. #ifdef IMAGE_EFI
  170. REQUIRE_OBJECT ( efi_image );
  171. #endif
  172. #ifdef IMAGE_SDI
  173. REQUIRE_OBJECT ( sdi );
  174. #endif
  175. #ifdef IMAGE_PNM
  176. REQUIRE_OBJECT ( pnm );
  177. #endif
  178. #ifdef IMAGE_PNG
  179. REQUIRE_OBJECT ( png );
  180. #endif
  181. /*
  182. * Drag in all requested commands
  183. *
  184. */
  185. #ifdef AUTOBOOT_CMD
  186. REQUIRE_OBJECT ( autoboot_cmd );
  187. #endif
  188. #ifdef NVO_CMD
  189. REQUIRE_OBJECT ( nvo_cmd );
  190. #endif
  191. #ifdef CONFIG_CMD
  192. REQUIRE_OBJECT ( config_cmd );
  193. #endif
  194. #ifdef IFMGMT_CMD
  195. REQUIRE_OBJECT ( ifmgmt_cmd );
  196. #endif
  197. /* IWMGMT_CMD is brought in by net80211.c if requested */
  198. #ifdef ROUTE_CMD
  199. REQUIRE_OBJECT ( route_cmd );
  200. #endif
  201. #ifdef IMAGE_CMD
  202. REQUIRE_OBJECT ( image_cmd );
  203. #endif
  204. #ifdef IMAGE_TRUST_CMD
  205. REQUIRE_OBJECT ( image_trust_cmd );
  206. #endif
  207. #ifdef DHCP_CMD
  208. REQUIRE_OBJECT ( dhcp_cmd );
  209. #endif
  210. #ifdef SANBOOT_CMD
  211. REQUIRE_OBJECT ( sanboot_cmd );
  212. #endif
  213. #ifdef MENU_CMD
  214. REQUIRE_OBJECT ( menu_cmd );
  215. #endif
  216. #ifdef LOGIN_CMD
  217. REQUIRE_OBJECT ( login_cmd );
  218. #endif
  219. #ifdef TIME_CMD
  220. REQUIRE_OBJECT ( time_cmd );
  221. #endif
  222. #ifdef DIGEST_CMD
  223. REQUIRE_OBJECT ( digest_cmd );
  224. #endif
  225. #ifdef PXE_CMD
  226. REQUIRE_OBJECT ( pxe_cmd );
  227. #endif
  228. #ifdef LOTEST_CMD
  229. REQUIRE_OBJECT ( lotest_cmd );
  230. #endif
  231. #ifdef VLAN_CMD
  232. REQUIRE_OBJECT ( vlan_cmd );
  233. #endif
  234. #ifdef POWEROFF_CMD
  235. REQUIRE_OBJECT ( poweroff_cmd );
  236. #endif
  237. #ifdef REBOOT_CMD
  238. REQUIRE_OBJECT ( reboot_cmd );
  239. #endif
  240. #ifdef CPUID_CMD
  241. REQUIRE_OBJECT ( cpuid_cmd );
  242. #endif
  243. #ifdef SYNC_CMD
  244. REQUIRE_OBJECT ( sync_cmd );
  245. #endif
  246. #ifdef NSLOOKUP_CMD
  247. REQUIRE_OBJECT ( nslookup_cmd );
  248. #endif
  249. #ifdef PCI_CMD
  250. REQUIRE_OBJECT ( pci_cmd );
  251. #endif
  252. #ifdef PARAM_CMD
  253. REQUIRE_OBJECT ( param_cmd );
  254. #endif
  255. #ifdef NEIGHBOUR_CMD
  256. REQUIRE_OBJECT ( neighbour_cmd );
  257. #endif
  258. #ifdef PING_CMD
  259. REQUIRE_OBJECT ( ping_cmd );
  260. #endif
  261. #ifdef CONSOLE_CMD
  262. REQUIRE_OBJECT ( console_cmd );
  263. #endif
  264. #ifdef IPSTAT_CMD
  265. REQUIRE_OBJECT ( ipstat_cmd );
  266. #endif
  267. #ifdef PROFSTAT_CMD
  268. REQUIRE_OBJECT ( profstat_cmd );
  269. #endif
  270. /*
  271. * Drag in miscellaneous objects
  272. *
  273. */
  274. #ifdef NULL_TRAP
  275. REQUIRE_OBJECT ( nulltrap );
  276. #endif
  277. #ifdef GDBSERIAL
  278. REQUIRE_OBJECT ( gdbidt );
  279. REQUIRE_OBJECT ( gdbserial );
  280. REQUIRE_OBJECT ( gdbstub_cmd );
  281. #endif
  282. #ifdef GDBUDP
  283. REQUIRE_OBJECT ( gdbidt );
  284. REQUIRE_OBJECT ( gdbudp );
  285. REQUIRE_OBJECT ( gdbstub_cmd );
  286. #endif
  287. /*
  288. * Drag in objects that are always required, but not dragged in via
  289. * symbol dependencies.
  290. *
  291. */
  292. REQUIRE_OBJECT ( device );
  293. REQUIRE_OBJECT ( embedded );
  294. /* linux drivers aren't picked up by the parserom utility so drag them in here */
  295. #ifdef DRIVERS_LINUX
  296. REQUIRE_OBJECT ( tap );
  297. #endif
  298. /*
  299. * Drag in relevant sideband entry points
  300. */
  301. #ifdef CONFIG_BOFM
  302. #ifdef BOFM_EFI
  303. REQUIRE_OBJECT ( efi_bofm );
  304. #endif /* BOFM_EFI */
  305. #endif /* CONFIG_BOFM */
  306. /*
  307. * Drag in relevant settings sources
  308. */
  309. #ifdef PCI_SETTINGS
  310. REQUIRE_OBJECT ( pci_settings );
  311. #endif
  312. #ifdef VMWARE_SETTINGS
  313. REQUIRE_OBJECT ( guestinfo );
  314. #endif
  315. #ifdef CPUID_SETTINGS
  316. REQUIRE_OBJECT ( cpuid_settings );
  317. #endif
  318. #ifdef MEMMAP_SETTINGS
  319. REQUIRE_OBJECT ( memmap_settings );
  320. #endif
  321. /*
  322. * Drag in selected keyboard map
  323. */
  324. #define REQUIRE_KEYMAP_OBJECT( _map ) REQUIRE_OBJECT ( keymap_ ## _map )
  325. #define REQUIRE_KEYMAP( _map ) REQUIRE_KEYMAP_OBJECT ( _map )
  326. REQUIRE_KEYMAP ( KEYBOARD_MAP );