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 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. FILE_LICENCE ( GPL2_OR_LATER );
  8. #include <config/general.h>
  9. #include <config/console.h>
  10. /*
  11. * Build ID string calculations
  12. *
  13. */
  14. #undef XSTR
  15. #undef STR
  16. #define XSTR(s) STR(s)
  17. #define STR(s) #s
  18. #ifdef BUILD_SERIAL
  19. #include "config/.buildserial.h"
  20. #define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
  21. #else
  22. #define BUILD_SERIAL_STR ""
  23. #endif
  24. #ifdef BUILD_ID
  25. #define BUILD_ID_STR " " BUILD_ID
  26. #else
  27. #define BUILD_ID_STR ""
  28. #endif
  29. #if defined(BUILD_ID) || defined(BUILD_SERIAL)
  30. #define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
  31. #else
  32. #define BUILD_STRING ""
  33. #endif
  34. /*
  35. * Drag in all requested console types
  36. *
  37. */
  38. #ifdef CONSOLE_PCBIOS
  39. REQUIRE_OBJECT ( bios_console );
  40. #endif
  41. #ifdef CONSOLE_SERIAL
  42. REQUIRE_OBJECT ( serial_console );
  43. #endif
  44. #ifdef CONSOLE_DIRECT_VGA
  45. REQUIRE_OBJECT ( video_subr );
  46. #endif
  47. #ifdef CONSOLE_BTEXT
  48. REQUIRE_OBJECT ( btext );
  49. #endif
  50. #ifdef CONSOLE_PC_KBD
  51. REQUIRE_OBJECT ( pc_kbd );
  52. #endif
  53. #ifdef CONSOLE_SYSLOG
  54. REQUIRE_OBJECT ( syslog );
  55. #endif
  56. #ifdef CONSOLE_EFI
  57. REQUIRE_OBJECT ( efi_console );
  58. #endif
  59. /*
  60. * Drag in all requested network protocols
  61. *
  62. */
  63. #ifdef NET_PROTO_IPV4
  64. REQUIRE_OBJECT ( ipv4 );
  65. #endif
  66. /*
  67. * Drag in all requested download protocols
  68. *
  69. */
  70. #ifdef DOWNLOAD_PROTO_TFTP
  71. REQUIRE_OBJECT ( tftp );
  72. #endif
  73. #ifdef DOWNLOAD_PROTO_NFS
  74. REQUIRE_OBJECT ( nfs );
  75. #endif
  76. #ifdef DOWNLOAD_PROTO_HTTP
  77. REQUIRE_OBJECT ( http );
  78. #endif
  79. #ifdef DOWNLOAD_PROTO_HTTPS
  80. REQUIRE_OBJECT ( https );
  81. #endif
  82. #ifdef DOWNLOAD_PROTO_FTP
  83. REQUIRE_OBJECT ( ftp );
  84. #endif
  85. #ifdef DOWNLOAD_PROTO_TFTM
  86. REQUIRE_OBJECT ( tftm );
  87. #endif
  88. #ifdef DOWNLOAD_PROTO_SLAM
  89. REQUIRE_OBJECT ( slam );
  90. #endif
  91. /*
  92. * Drag in all requested SAN boot protocols
  93. *
  94. */
  95. #ifdef SANBOOT_PROTO_ISCSI
  96. REQUIRE_OBJECT ( iscsiboot );
  97. #endif
  98. #ifdef SANBOOT_PROTO_AOE
  99. REQUIRE_OBJECT ( aoeboot );
  100. #endif
  101. #ifdef SANBOOT_PROTO_IB_SRP
  102. REQUIRE_OBJECT ( ib_srpboot );
  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. #ifdef IMAGE_EFI
  157. REQUIRE_OBJECT ( efi_image );
  158. #endif
  159. /*
  160. * Drag in all requested commands
  161. *
  162. */
  163. #ifdef AUTOBOOT_CMD
  164. REQUIRE_OBJECT ( autoboot_cmd );
  165. #endif
  166. #ifdef NVO_CMD
  167. REQUIRE_OBJECT ( nvo_cmd );
  168. #endif
  169. #ifdef CONFIG_CMD
  170. REQUIRE_OBJECT ( config_cmd );
  171. #endif
  172. #ifdef IFMGMT_CMD
  173. REQUIRE_OBJECT ( ifmgmt_cmd );
  174. #endif
  175. #ifdef ROUTE_CMD
  176. REQUIRE_OBJECT ( route_cmd );
  177. #endif
  178. #ifdef IMAGE_CMD
  179. REQUIRE_OBJECT ( image_cmd );
  180. #endif
  181. #ifdef DHCP_CMD
  182. REQUIRE_OBJECT ( dhcp_cmd );
  183. #endif
  184. #ifdef SANBOOT_CMD
  185. REQUIRE_OBJECT ( sanboot_cmd );
  186. #endif
  187. #ifdef LOGIN_CMD
  188. REQUIRE_OBJECT ( login_cmd );
  189. #endif
  190. #ifdef TIME_CMD
  191. REQUIRE_OBJECT ( time_cmd );
  192. #endif
  193. #ifdef DIGEST_CMD
  194. REQUIRE_OBJECT ( digest_cmd );
  195. #endif
  196. #ifdef PXE_CMD
  197. REQUIRE_OBJECT ( pxe_cmd );
  198. #endif
  199. /*
  200. * Drag in miscellaneous objects
  201. *
  202. */
  203. #ifdef NULL_TRAP
  204. REQUIRE_OBJECT ( nulltrap );
  205. #endif
  206. #ifdef GDBSERIAL
  207. REQUIRE_OBJECT ( gdbidt );
  208. REQUIRE_OBJECT ( gdbserial );
  209. REQUIRE_OBJECT ( gdbstub_cmd );
  210. #endif
  211. #ifdef GDBUDP
  212. REQUIRE_OBJECT ( gdbidt );
  213. REQUIRE_OBJECT ( gdbudp );
  214. REQUIRE_OBJECT ( gdbstub_cmd );
  215. #endif
  216. /*
  217. * Drag in objects that are always required, but not dragged in via
  218. * symbol dependencies.
  219. *
  220. */
  221. REQUIRE_OBJECT ( device );
  222. REQUIRE_OBJECT ( embedded );