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, or (at
5 * your option) any later version.
12 #include "config/general.h"
15 * Build ID string calculations
20 #define XSTR(s) STR(s)
24 #include "config/.buildserial.h"
25 #define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
27 #define BUILD_SERIAL_STR ""
31 #define BUILD_ID_STR " " BUILD_ID
33 #define BUILD_ID_STR ""
36 #if defined(BUILD_ID) || defined(BUILD_SERIAL)
37 #define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
39 #define BUILD_STRING ""
43 * Print out configuration
46 void print_config ( void ) {
47 printf( "Etherboot " VERSION BUILD_STRING
48 " (GPL) http://etherboot.org\n"
67 #ifdef IMAGE_MULTIBOOT
79 #ifdef PXE_EXPORT /* All possible exports */
84 #endif /* All possible exports */
87 #if (BOOTP_SERVER != 67) || (BOOTP_CLIENT != 68)
88 printf( "[DHCP ports %d and %d] ",
89 BOOTP_SERVER, BOOTP_CLIENT);
96 # ifndef NO_DHCP_SUPPORT
102 #ifdef DOWNLOAD_PROTO_TFTP
105 #ifdef DOWNLOAD_PROTO_NFS
108 #ifdef DOWNLOAD_PROTO_SLAM
111 #ifdef DOWNLOAD_PROTO_TFTM
114 #ifdef DOWNLOAD_PROTO_HTTP
125 printf( "Keeping It Real [EXPERIMENTAL]\n" );
130 * Drag in all requested console types
132 * CONSOLE_DUAL sets both CONSOLE_FIRMWARE and CONSOLE_SERIAL for
133 * legacy compatibility.
138 #undef CONSOLE_FIRMWARE
139 #define CONSOLE_FIRMWARE 1
140 #undef CONSOLE_SERIAL
141 #define CONSOLE_SERIAL 1
144 #ifdef CONSOLE_FIRMWARE
145 REQUIRE_OBJECT ( bios_console );
148 #ifdef CONSOLE_SERIAL
149 REQUIRE_OBJECT ( serial );
152 #ifdef CONSOLE_DIRECT_VGA
153 REQUIRE_OBJECT ( video_subr );
157 REQUIRE_OBJECT ( btext );
160 #ifdef CONSOLE_PC_KBD
161 REQUIRE_OBJECT ( pc_kbd );
165 * Drag in relocate.o if required
170 REQUIRE_OBJECT ( relocate );