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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 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_ELF64
  122. REQUIRE_OBJECT ( elf64 );
  123. #endif
  124. #ifdef IMAGE_ELF
  125. REQUIRE_OBJECT ( elf );
  126. #endif
  127. #ifdef IMAGE_FREEBSD
  128. REQUIRE_OBJECT ( freebsd );
  129. #endif
  130. #ifdef IMAGE_MULTIBOOT
  131. REQUIRE_OBJECT ( multiboot );
  132. #endif
  133. #ifdef IMAGE_AOUT
  134. REQUIRE_OBJECT ( aout );
  135. #endif
  136. #ifdef IMAGE_WINCE
  137. REQUIRE_OBJECT ( wince );
  138. #endif
  139. #ifdef IMAGE_PXE
  140. REQUIRE_OBJECT ( pxe_image );
  141. #endif
  142. #ifdef IMAGE_SCRIPT
  143. REQUIRE_OBJECT ( script );
  144. #endif
  145. #ifdef IMAGE_BZIMAGE
  146. REQUIRE_OBJECT ( bzimage );
  147. #endif
  148. #ifdef IMAGE_ELTORITO
  149. REQUIRE_OBJECT ( eltorito );
  150. #endif
  151. /*
  152. * Drag in all requested commands
  153. *
  154. */
  155. #ifdef AUTOBOOT_CMD
  156. REQUIRE_OBJECT ( autoboot_cmd );
  157. #endif
  158. #ifdef NVO_CMD
  159. REQUIRE_OBJECT ( nvo_cmd );
  160. #endif
  161. #ifdef CONFIG_CMD
  162. REQUIRE_OBJECT ( config_cmd );
  163. #endif
  164. #ifdef IFMGMT_CMD
  165. REQUIRE_OBJECT ( ifmgmt_cmd );
  166. #endif
  167. #ifdef ROUTE_CMD
  168. REQUIRE_OBJECT ( route_cmd );
  169. #endif
  170. #ifdef IMAGE_CMD
  171. REQUIRE_OBJECT ( image_cmd );
  172. #endif
  173. #ifdef DHCP_CMD
  174. REQUIRE_OBJECT ( dhcp_cmd );
  175. #endif
  176. #ifdef SANBOOT_CMD
  177. REQUIRE_OBJECT ( sanboot_cmd );
  178. #endif
  179. /*
  180. * Drag in miscellaneous objects
  181. *
  182. */
  183. #ifdef NULL_TRAP
  184. REQUIRE_OBJECT ( nulltrap );
  185. #endif