You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.c 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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, or (at
  5. * your option) any later version.
  6. */
  7. #include "config/general.h"
  8. /*
  9. * Build ID string calculations
  10. *
  11. */
  12. #undef XSTR
  13. #undef STR
  14. #define XSTR(s) STR(s)
  15. #define STR(s) #s
  16. #ifdef BUILD_SERIAL
  17. #include "config/.buildserial.h"
  18. #define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
  19. #else
  20. #define BUILD_SERIAL_STR ""
  21. #endif
  22. #ifdef BUILD_ID
  23. #define BUILD_ID_STR " " BUILD_ID
  24. #else
  25. #define BUILD_ID_STR ""
  26. #endif
  27. #if defined(BUILD_ID) || defined(BUILD_SERIAL)
  28. #define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
  29. #else
  30. #define BUILD_STRING ""
  31. #endif
  32. /*
  33. * Drag in all requested console types
  34. *
  35. * CONSOLE_DUAL sets both CONSOLE_FIRMWARE and CONSOLE_SERIAL for
  36. * legacy compatibility.
  37. *
  38. */
  39. #ifdef CONSOLE_DUAL
  40. #undef CONSOLE_FIRMWARE
  41. #define CONSOLE_FIRMWARE 1
  42. #undef CONSOLE_SERIAL
  43. #define CONSOLE_SERIAL 1
  44. #endif
  45. #ifdef CONSOLE_FIRMWARE
  46. REQUIRE_OBJECT ( bios_console );
  47. #endif
  48. #ifdef CONSOLE_SERIAL
  49. REQUIRE_OBJECT ( serial );
  50. #endif
  51. #ifdef CONSOLE_DIRECT_VGA
  52. REQUIRE_OBJECT ( video_subr );
  53. #endif
  54. #ifdef CONSOLE_BTEXT
  55. REQUIRE_OBJECT ( btext );
  56. #endif
  57. #ifdef CONSOLE_PC_KBD
  58. REQUIRE_OBJECT ( pc_kbd );
  59. #endif
  60. #ifdef CONSOLE_SYSLOG
  61. REQUIRE_OBJECT ( syslog );
  62. #endif
  63. /*
  64. * Drag in all requested protocols
  65. *
  66. */
  67. #ifdef DOWNLOAD_PROTO_TFTP
  68. REQUIRE_OBJECT ( tftp );
  69. #endif
  70. #ifdef DOWNLOAD_PROTO_NFS
  71. REQUIRE_OBJECT ( nfs );
  72. #endif
  73. #ifdef DOWNLOAD_PROTO_HTTP
  74. REQUIRE_OBJECT ( http );
  75. #endif
  76. #ifdef DOWNLOAD_PROTO_FTP
  77. REQUIRE_OBJECT ( ftp );
  78. #endif
  79. #ifdef DOWNLOAD_PROTO_TFTM
  80. REQUIRE_OBJECT ( tftm );
  81. #endif
  82. #ifdef DOWNLOAD_PROTO_SLAM
  83. REQUIRE_OBJECT ( slam );
  84. #endif
  85. /*
  86. * Drag in any required resolvers
  87. *
  88. */
  89. #ifdef DNS_RESOLVER
  90. REQUIRE_OBJECT ( dns );
  91. #endif
  92. #ifdef NMB_RESOLVER
  93. REQUIRE_OBJECT ( nmb );
  94. #endif
  95. /*
  96. * Drag in all requested image formats
  97. *
  98. */
  99. #ifdef IMAGE_NBI
  100. REQUIRE_OBJECT ( nbi );
  101. #endif
  102. #ifdef IMAGE_ELF64
  103. REQUIRE_OBJECT ( elf64 );
  104. #endif
  105. #ifdef IMAGE_ELF
  106. REQUIRE_OBJECT ( elf );
  107. #endif
  108. #ifdef IMAGE_ELF
  109. REQUIRE_OBJECT ( coff );
  110. #endif
  111. #ifdef IMAGE_FREEBSD
  112. REQUIRE_OBJECT ( freebsd );
  113. #endif
  114. #ifdef IMAGE_MULTIBOOT
  115. REQUIRE_OBJECT ( multiboot );
  116. #endif
  117. #ifdef IMAGE_AOUT
  118. REQUIRE_OBJECT ( aout );
  119. #endif
  120. #ifdef IMAGE_WINCE
  121. REQUIRE_OBJECT ( wince );
  122. #endif
  123. #ifdef IMAGE_PXE
  124. REQUIRE_OBJECT ( pxe_image );
  125. #endif
  126. #ifdef IMAGE_SCRIPT
  127. REQUIRE_OBJECT ( script );
  128. #endif
  129. #ifdef IMAGE_BZIMAGE
  130. REQUIRE_OBJECT ( bzimage );
  131. #endif
  132. #ifdef IMAGE_ELTORITO
  133. REQUIRE_OBJECT ( eltorito );
  134. #endif
  135. /*
  136. * Drag in all requested commands
  137. *
  138. */
  139. #ifdef AUTOBOOT_CMD
  140. REQUIRE_OBJECT ( autoboot_cmd );
  141. #endif
  142. #ifdef NVO_CMD
  143. REQUIRE_OBJECT ( nvo_cmd );
  144. #endif
  145. #ifdef CONFIG_CMD
  146. REQUIRE_OBJECT ( config_cmd );
  147. #endif
  148. #ifdef IFMGMT_CMD
  149. REQUIRE_OBJECT ( ifmgmt_cmd );
  150. #endif
  151. #ifdef ROUTE_CMD
  152. REQUIRE_OBJECT ( route_cmd );
  153. #endif
  154. #ifdef IMAGE_CMD
  155. REQUIRE_OBJECT ( image_cmd );
  156. #endif
  157. #ifdef DHCP_CMD
  158. REQUIRE_OBJECT ( dhcp_cmd );
  159. #endif
  160. /*
  161. * Drag in miscellaneous objects
  162. *
  163. */
  164. #ifdef NULL_TRAP
  165. REQUIRE_OBJECT ( nulltrap );
  166. #endif
  167. #ifdef DUMP_GDBSYM
  168. REQUIRE_OBJECT ( gdbsym );
  169. #endif