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.
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.
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
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.
22 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
24 #include <config/general.h>
25 #include <config/console.h>
26 #include <config/sideband.h>
27 #include <config/settings.h>
31 * Configuration options
33 * This file contains macros that pull various objects into the link
34 * based on definitions in configuration header files. Ideally it
35 * should be the only place in iPXE where one might need to use #ifdef
36 * for compile-time options.
38 * In the fairly common case where an object should only be considered
39 * for inclusion if the subsystem it depends on is present, its
40 * configuration macros should be placed in a file named
41 * <tt>config_<i>subsystem</i>.c</tt>, where @e subsystem is the
42 * object basename of the main source file for that subsystem. The
43 * build system will pull in that file if @c subsystem.c is included
44 * in the final iPXE executable built.
47 PROVIDE_REQUIRING_SYMBOL();
50 * Drag in all requested console types
55 REQUIRE_OBJECT ( bios_console );
58 REQUIRE_OBJECT ( serial );
60 #ifdef CONSOLE_DIRECT_VGA
61 REQUIRE_OBJECT ( video_subr );
64 REQUIRE_OBJECT ( pc_kbd );
67 REQUIRE_OBJECT ( syslog );
69 #ifdef CONSOLE_SYSLOGS
70 REQUIRE_OBJECT ( syslogs );
73 REQUIRE_OBJECT ( efi_console );
76 REQUIRE_OBJECT ( linux_console );
79 REQUIRE_OBJECT ( vmconsole );
81 #ifdef CONSOLE_DEBUGCON
82 REQUIRE_OBJECT ( debugcon );
85 REQUIRE_OBJECT ( vesafb );
88 REQUIRE_OBJECT ( int13con );
92 * Drag in all requested network protocols
96 REQUIRE_OBJECT ( ipv4 );
99 REQUIRE_OBJECT ( ipv6 );
103 * Drag in all requested PXE support
107 REQUIRE_OBJECT ( pxemenu );
110 REQUIRE_OBJECT ( pxe_call );
114 * Drag in all requested download protocols
117 #ifdef DOWNLOAD_PROTO_TFTP
118 REQUIRE_OBJECT ( tftp );
120 #ifdef DOWNLOAD_PROTO_HTTP
121 REQUIRE_OBJECT ( http );
123 #ifdef DOWNLOAD_PROTO_HTTPS
124 REQUIRE_OBJECT ( https );
126 #ifdef DOWNLOAD_PROTO_FTP
127 REQUIRE_OBJECT ( ftp );
129 #ifdef DOWNLOAD_PROTO_NFS
130 REQUIRE_OBJECT ( nfs_open );
132 #ifdef DOWNLOAD_PROTO_SLAM
133 REQUIRE_OBJECT ( slam );
137 * Drag in all requested SAN boot protocols
140 #ifdef SANBOOT_PROTO_ISCSI
141 REQUIRE_OBJECT ( iscsi );
143 #ifdef SANBOOT_PROTO_HTTP
144 REQUIRE_OBJECT ( httpblock );
148 * Drag in all requested resolvers
152 REQUIRE_OBJECT ( dns );
156 * Drag in all requested image formats
160 REQUIRE_OBJECT ( nbi );
163 REQUIRE_OBJECT ( elfboot );
165 #ifdef IMAGE_MULTIBOOT
166 REQUIRE_OBJECT ( multiboot );
169 REQUIRE_OBJECT ( pxe_image );
172 REQUIRE_OBJECT ( script );
175 REQUIRE_OBJECT ( bzimage );
177 #ifdef IMAGE_ELTORITO
178 REQUIRE_OBJECT ( eltorito );
181 REQUIRE_OBJECT ( comboot );
182 REQUIRE_OBJECT ( com32 );
183 REQUIRE_OBJECT ( comboot_call );
184 REQUIRE_OBJECT ( com32_call );
185 REQUIRE_OBJECT ( com32_wrapper );
186 REQUIRE_OBJECT ( comboot_resolv );
189 REQUIRE_OBJECT ( efi_image );
192 REQUIRE_OBJECT ( sdi );
195 REQUIRE_OBJECT ( pnm );
198 REQUIRE_OBJECT ( png );
202 * Drag in all requested commands
206 REQUIRE_OBJECT ( autoboot_cmd );
209 REQUIRE_OBJECT ( nvo_cmd );
212 REQUIRE_OBJECT ( config_cmd );
215 REQUIRE_OBJECT ( ifmgmt_cmd );
217 /* IWMGMT_CMD is brought in by net80211.c if requested */
219 REQUIRE_OBJECT ( route_cmd );
222 REQUIRE_OBJECT ( image_cmd );
224 #ifdef IMAGE_TRUST_CMD
225 REQUIRE_OBJECT ( image_trust_cmd );
228 REQUIRE_OBJECT ( dhcp_cmd );
231 REQUIRE_OBJECT ( sanboot_cmd );
234 REQUIRE_OBJECT ( menu_cmd );
237 REQUIRE_OBJECT ( login_cmd );
240 REQUIRE_OBJECT ( time_cmd );
243 REQUIRE_OBJECT ( digest_cmd );
246 REQUIRE_OBJECT ( pxe_cmd );
249 REQUIRE_OBJECT ( lotest_cmd );
252 REQUIRE_OBJECT ( vlan_cmd );
255 REQUIRE_OBJECT ( poweroff_cmd );
258 REQUIRE_OBJECT ( reboot_cmd );
261 REQUIRE_OBJECT ( cpuid_cmd );
264 REQUIRE_OBJECT ( sync_cmd );
267 REQUIRE_OBJECT ( nslookup_cmd );
270 REQUIRE_OBJECT ( pci_cmd );
273 REQUIRE_OBJECT ( param_cmd );
276 REQUIRE_OBJECT ( neighbour_cmd );
279 REQUIRE_OBJECT ( ping_cmd );
282 REQUIRE_OBJECT ( console_cmd );
285 REQUIRE_OBJECT ( ipstat_cmd );
288 REQUIRE_OBJECT ( profstat_cmd );
292 * Drag in miscellaneous objects
296 REQUIRE_OBJECT ( nulltrap );
299 REQUIRE_OBJECT ( gdbidt );
300 REQUIRE_OBJECT ( gdbserial );
301 REQUIRE_OBJECT ( gdbstub_cmd );
304 REQUIRE_OBJECT ( gdbidt );
305 REQUIRE_OBJECT ( gdbudp );
306 REQUIRE_OBJECT ( gdbstub_cmd );
310 * Drag in objects that are always required, but not dragged in via
311 * symbol dependencies.
314 REQUIRE_OBJECT ( device );
315 REQUIRE_OBJECT ( embedded );
317 /* linux drivers aren't picked up by the parserom utility so drag them in here */
319 REQUIRE_OBJECT ( tap );
323 * Drag in relevant sideband entry points
327 REQUIRE_OBJECT ( efi_bofm );
328 #endif /* BOFM_EFI */
329 #endif /* CONFIG_BOFM */
332 * Drag in relevant settings sources
335 REQUIRE_OBJECT ( pci_settings );
337 #ifdef VMWARE_SETTINGS
338 REQUIRE_OBJECT ( guestinfo );
340 #ifdef CPUID_SETTINGS
341 REQUIRE_OBJECT ( cpuid_settings );
343 #ifdef MEMMAP_SETTINGS
344 REQUIRE_OBJECT ( memmap_settings );
347 REQUIRE_OBJECT ( vram_settings );
351 * Drag in selected keyboard map
353 #define REQUIRE_KEYMAP_OBJECT( _map ) REQUIRE_OBJECT ( keymap_ ## _map )
354 #define REQUIRE_KEYMAP( _map ) REQUIRE_KEYMAP_OBJECT ( _map )
355 REQUIRE_KEYMAP ( KEYBOARD_MAP );