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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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_console );
  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 timers
  65. */
  66. #ifdef TIMER_BIOS
  67. REQUIRE_OBJECT ( timer_bios );
  68. #endif
  69. #ifdef TIMER_RDTSC
  70. REQUIRE_OBJECT ( timer_rdtsc );
  71. #endif
  72. /*
  73. * Drag in all requested network protocols
  74. *
  75. */
  76. #ifdef NET_PROTO_IPV4
  77. REQUIRE_OBJECT ( ipv4 );
  78. #endif
  79. /*
  80. * Drag in all requested download protocols
  81. *
  82. */
  83. #ifdef DOWNLOAD_PROTO_TFTP
  84. REQUIRE_OBJECT ( tftp );
  85. #endif
  86. #ifdef DOWNLOAD_PROTO_NFS
  87. REQUIRE_OBJECT ( nfs );
  88. #endif
  89. #ifdef DOWNLOAD_PROTO_HTTP
  90. REQUIRE_OBJECT ( http );
  91. #endif
  92. #ifdef DOWNLOAD_PROTO_HTTPS
  93. REQUIRE_OBJECT ( https );
  94. #endif
  95. #ifdef DOWNLOAD_PROTO_FTP
  96. REQUIRE_OBJECT ( ftp );
  97. #endif
  98. #ifdef DOWNLOAD_PROTO_TFTM
  99. REQUIRE_OBJECT ( tftm );
  100. #endif
  101. #ifdef DOWNLOAD_PROTO_SLAM
  102. REQUIRE_OBJECT ( slam );
  103. #endif
  104. /*
  105. * Drag in all requested resolvers
  106. *
  107. */
  108. #ifdef DNS_RESOLVER
  109. REQUIRE_OBJECT ( dns );
  110. #endif
  111. #ifdef NMB_RESOLVER
  112. REQUIRE_OBJECT ( nmb );
  113. #endif
  114. /*
  115. * Drag in all requested image formats
  116. *
  117. */
  118. #ifdef IMAGE_NBI
  119. REQUIRE_OBJECT ( nbi );
  120. #endif
  121. #ifdef IMAGE_ELF
  122. REQUIRE_OBJECT ( elfboot );
  123. #endif
  124. #ifdef IMAGE_FREEBSD
  125. REQUIRE_OBJECT ( freebsd );
  126. #endif
  127. #ifdef IMAGE_MULTIBOOT
  128. REQUIRE_OBJECT ( multiboot );
  129. #endif
  130. #ifdef IMAGE_AOUT
  131. REQUIRE_OBJECT ( aout );
  132. #endif
  133. #ifdef IMAGE_WINCE
  134. REQUIRE_OBJECT ( wince );
  135. #endif
  136. #ifdef IMAGE_PXE
  137. REQUIRE_OBJECT ( pxe_image );
  138. #endif
  139. #ifdef IMAGE_SCRIPT
  140. REQUIRE_OBJECT ( script );
  141. #endif
  142. #ifdef IMAGE_BZIMAGE
  143. REQUIRE_OBJECT ( bzimage );
  144. #endif
  145. #ifdef IMAGE_ELTORITO
  146. REQUIRE_OBJECT ( eltorito );
  147. #endif
  148. #ifdef IMAGE_COMBOOT
  149. REQUIRE_OBJECT ( comboot );
  150. REQUIRE_OBJECT ( com32 );
  151. REQUIRE_OBJECT ( comboot_call );
  152. REQUIRE_OBJECT ( com32_call );
  153. REQUIRE_OBJECT ( com32_wrapper );
  154. REQUIRE_OBJECT ( comboot_resolv );
  155. #endif
  156. /*
  157. * Drag in all requested commands
  158. *
  159. */
  160. #ifdef AUTOBOOT_CMD
  161. REQUIRE_OBJECT ( autoboot_cmd );
  162. #endif
  163. #ifdef NVO_CMD
  164. REQUIRE_OBJECT ( nvo_cmd );
  165. #endif
  166. #ifdef CONFIG_CMD
  167. REQUIRE_OBJECT ( config_cmd );
  168. #endif
  169. #ifdef IFMGMT_CMD
  170. REQUIRE_OBJECT ( ifmgmt_cmd );
  171. #endif
  172. #ifdef ROUTE_CMD
  173. REQUIRE_OBJECT ( route_cmd );
  174. #endif
  175. #ifdef IMAGE_CMD
  176. REQUIRE_OBJECT ( image_cmd );
  177. #endif
  178. #ifdef DHCP_CMD
  179. REQUIRE_OBJECT ( dhcp_cmd );
  180. #endif
  181. #ifdef SANBOOT_CMD
  182. REQUIRE_OBJECT ( sanboot_cmd );
  183. #endif
  184. /*
  185. * Drag in miscellaneous objects
  186. *
  187. */
  188. #ifdef NULL_TRAP
  189. REQUIRE_OBJECT ( nulltrap );
  190. #endif
  191. #ifdef GDBSERIAL
  192. REQUIRE_OBJECT ( gdbidt );
  193. REQUIRE_OBJECT ( gdbserial );
  194. REQUIRE_OBJECT ( gdbstub_cmd );
  195. #endif
  196. #ifdef GDBUDP
  197. REQUIRE_OBJECT ( gdbidt );
  198. REQUIRE_OBJECT ( gdbudp );
  199. REQUIRE_OBJECT ( gdbstub_cmd );
  200. #endif
  201. /*
  202. * Drag in objects that are always required, but not dragged in via
  203. * symbol dependencies.
  204. *
  205. */
  206. REQUIRE_OBJECT ( device );