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_SPACER " "
39 #define BUILD_SPACER ""
42 #if defined(BUILD_ID) || defined(BUILD_SERIAL)
43 #define BUILD_STRING " [build " BUILD_ID_STR BUILD_SPACER BUILD_SERIAL_STR "]"
45 #define BUILD_STRING ""
49 * Print out configuration
52 void print_config ( void ) {
53 printf( "Etherboot " VERSION BUILD_STRING
54 " (GPL) http://etherboot.org\n"
73 #ifdef IMAGE_MULTIBOOT
85 #ifdef PXE_EXPORT /* All possible exports */
90 #endif /* All possible exports */
93 #if (BOOTP_SERVER != 67) || (BOOTP_CLIENT != 68)
94 printf( "[DHCP ports %d and %d] ",
95 BOOTP_SERVER, BOOTP_CLIENT);
102 # ifndef NO_DHCP_SUPPORT
108 #ifdef DOWNLOAD_PROTO_TFTP
111 #ifdef DOWNLOAD_PROTO_NFS
114 #ifdef DOWNLOAD_PROTO_SLAM
117 #ifdef DOWNLOAD_PROTO_TFTM
120 #ifdef DOWNLOAD_PROTO_HTTP
131 printf( "Keeping It Real [EXPERIMENTAL]\n" );
136 * Drag in all requested console types
138 * CONSOLE_DUAL sets both CONSOLE_FIRMWARE and CONSOLE_SERIAL for
139 * legacy compatibility.
144 #undef CONSOLE_FIRMWARE
145 #define CONSOLE_FIRMWARE 1
146 #undef CONSOLE_SERIAL
147 #define CONSOLE_SERIAL 1
150 #ifdef CONSOLE_FIRMWARE
151 REQUIRE_OBJECT ( bios_console );
154 #ifdef CONSOLE_SERIAL
155 REQUIRE_OBJECT ( serial );
158 #ifdef CONSOLE_DIRECT_VGA
159 REQUIRE_OBJECT ( video_subr );
163 REQUIRE_OBJECT ( btext );
166 #ifdef CONSOLE_PC_KBD
167 REQUIRE_OBJECT ( pc_kbd );
171 * Drag in relocate.o if required
176 REQUIRE_OBJECT ( relocate );