image-config.in 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. # Copyright (C) 2006-2012 OpenWrt.org
  2. # Copyright (C) 2010 Vertical Communications
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. config TARGET_DEFAULT_LAN_IP_FROM_PREINIT
  8. bool "Use preinit IP configuration as default LAN IP" if IMAGEOPT
  9. default n
  10. help
  11. Enabling this will set the default LAN IP address and netmask
  12. to the preinit values set in the image config.
  13. menuconfig PREINITOPT
  14. bool "Preinit configuration options" if IMAGEOPT
  15. default n
  16. help
  17. These options are used to control the environment used to initialize
  18. the system before running init (which typically mean /sbin/init which
  19. switches to multiuser mode).
  20. config TARGET_PREINIT_SUPPRESS_STDERR
  21. bool "Suppress stderr messages during preinit" if PREINITOPT
  22. default y
  23. help
  24. Sends stderr to null during preinit. This is the default behaviour
  25. in previous versions of OpenWrt. This also prevents init process
  26. itself from displaying stderr, however processes launched by init
  27. in multiuser through inittab will use the current terminal (e.g.
  28. the ash shell launched by inittab will display stderr). That's
  29. the same behaviour as seen in previous version of OpenWrt.
  30. config TARGET_PREINIT_DISABLE_FAILSAFE
  31. bool
  32. prompt "Disable failsafe" if PREINITOPT
  33. default n
  34. help
  35. Disable failsafe mode. While it is very handy while
  36. experimenting or developing it really ought to be
  37. disabled in production environments as it is a major
  38. security loophole.
  39. config TARGET_PREINIT_TIMEOUT
  40. int
  41. prompt "Failsafe/Debug wait timeout" if PREINITOPT
  42. default 2
  43. help
  44. How long to wait for failsafe mode to be entered or for
  45. a debug option to be pressed before continuing with a
  46. regular boot.
  47. config TARGET_PREINIT_SHOW_NETMSG
  48. bool
  49. prompt "Show all preinit network messages" if PREINITOPT
  50. default n
  51. help
  52. Show preinit all network messages (via netmsg broadcast), not only
  53. the message indicating to press reset to enter failsafe. Note that
  54. if the architecture doesn't define an interface, and there is no
  55. 'Preinit network interface' defined, then no messages will be
  56. emitted, even if this is set.
  57. config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
  58. bool
  59. prompt "Suppress network message indicating failsafe" if ( PREINITOPT && !TARGET_PREINIT_SHOW_NETMSG && !TARGET_PREINIT_DISABLE_FAILSAFE )
  60. default n
  61. help
  62. If "Show all preinit network messages" above is not set, then
  63. setting this option suppresses the only message that would be
  64. emitted otherwise, name the network message to enter failsafe
  65. (via netmsg).
  66. config TARGET_PREINIT_IFNAME
  67. string
  68. prompt "Preinit network interface" if PREINITOPT
  69. default ""
  70. help
  71. Interface for sending preinit messages to network, and any other
  72. default networking in failsafe or preinit. If empty
  73. uses $ifname (if defined in /etc/preinit.arch).
  74. config TARGET_PREINIT_IP
  75. string
  76. prompt "IP address for preinit network messages" if PREINITOPT
  77. default "192.168.1.1"
  78. help
  79. IP address used to configure interface for preinit network
  80. messages, including failsafe messages
  81. config TARGET_PREINIT_NETMASK
  82. string
  83. prompt "Netmask for preinit network messages" if PREINITOPT
  84. default "255.255.255.0"
  85. help
  86. Netmask used to configure interface for preinit network
  87. messages, including failsafes messages
  88. config TARGET_PREINIT_BROADCAST
  89. string
  90. prompt "Broadcast address for preinit network messages" if PREINITOPT
  91. default "192.168.1.255"
  92. help
  93. Broadcast address to which to send preinit network messages, as
  94. as failsafe messages
  95. menuconfig INITOPT
  96. bool "Init configuration options" if IMAGEOPT
  97. default n
  98. help
  99. These option choose the command that will run as the 'init' command
  100. (that is which is responsible for controlling the system once preinit
  101. transfers control to it) as well as some options controlling its
  102. behaviour. Normally init is /sbin/init.
  103. config TARGET_INIT_PATH
  104. string
  105. prompt "PATH for regular boot" if INITOPT
  106. default "/usr/sbin:/usr/bin:/sbin:/bin"
  107. help
  108. Default PATH used during normal operation
  109. config TARGET_INIT_ENV
  110. string
  111. prompt "Environment variables to set when starting init (start with none)" if INITOPT
  112. default ""
  113. help
  114. Should be a space separated list of variable assignments. These
  115. variables will be present in the environment. Spaces may not be
  116. present (including through expansion) even in a quoted string
  117. (env doesn't understanding quoting).
  118. config TARGET_INIT_CMD
  119. string
  120. prompt "Init command" if INITOPT
  121. default "/sbin/init"
  122. help
  123. The executable to run as the init process. Is 'exec'd by
  124. preinit (which is the init that the kernel launches on boot).
  125. config TARGET_INIT_SUPPRESS_STDERR
  126. bool
  127. prompt "Suppress stderr messages of init" if INITOPT
  128. default y
  129. help
  130. Prevents showing stderr messages for init command if not already
  131. suppressed during preinit. This is the default behaviour in
  132. previous versions of OpenWrt. Removing this does nothing if
  133. stderr is suppressed during preinit (which is the default).
  134. menuconfig VERSIONOPT
  135. bool "Version configuration options" if IMAGEOPT
  136. default n
  137. help
  138. These options allow to override the version information embedded in
  139. the /etc/openwrt_version, /etc/openwrt_release, /etc/banner,
  140. /etc/opkg.conf, and /etc/os-release files. Usually there is no need
  141. to set these, but they're useful for release builds or custom OpenWrt
  142. redistributions that should carry custom version tags.
  143. if VERSIONOPT
  144. config VERSION_DIST
  145. string
  146. prompt "Release distribution"
  147. default "OpenWrt"
  148. help
  149. This is the name of the release distribution.
  150. If unspecified, it defaults to OpenWrt.
  151. config VERSION_NUMBER
  152. string
  153. prompt "Release version number"
  154. help
  155. This is the release version number embedded in the image.
  156. If unspecified, it defaults to SNAPSHOT for the master branch
  157. or to ##.##-SNAPSHOT on release branches.
  158. config VERSION_CODE
  159. string
  160. prompt "Release version code"
  161. help
  162. This is the release version code embedded in the image.
  163. If unspecified, it defaults to a revision number describing the
  164. repository version of the source, e.g. the number of commits
  165. since a branch point or a short Git commit ID.
  166. config VERSION_REPO
  167. string
  168. prompt "Release repository"
  169. default "https://downloads.openwrt.org/snapshots"
  170. help
  171. This is the repository address embedded in the image, it defaults
  172. to the trunk snapshot repo; the url may contain the following placeholders:
  173. %R .. Repository revision ID
  174. %V .. Configured release version number or "SNAPSHOT", uppercase
  175. %v .. Configured release version number or "snapshot", lowercase
  176. %C .. Configured release revision code or value of %R, uppercase
  177. %c .. Configured release revision code or value of %R, lowercase
  178. %D .. Distribution name or "OpenWrt", uppercase
  179. %d .. Distribution name or "openwrt", lowercase
  180. %T .. Target name
  181. %S .. Target/Subtarget name
  182. %A .. Package architecture
  183. %t .. Build taint flags, e.g. "no-all busybox"
  184. %M .. Manufacturer name or "OpenWrt"
  185. %P .. Product name or "Generic"
  186. %h .. Hardware revision or "v0"
  187. config VERSION_HOME_URL
  188. string
  189. prompt "Release Homepage"
  190. help
  191. This is the release version homepage
  192. config VERSION_MANUFACTURER
  193. string
  194. prompt "Manufacturer name"
  195. help
  196. This is the manufacturer name embedded in /etc/device_info
  197. Useful for OEMs building OpenWrt based firmware
  198. config VERSION_MANUFACTURER_URL
  199. string
  200. prompt "Manufacturer URL"
  201. help
  202. This is an URL to the manufacturer's website embedded in /etc/device_info
  203. Useful for OEMs building OpenWrt based firmware
  204. config VERSION_BUG_URL
  205. string
  206. prompt "Bug reporting URL"
  207. help
  208. This is an URL to provide users for providing bug reports
  209. config VERSION_SUPPORT_URL
  210. string
  211. prompt "Support URL"
  212. help
  213. This an URL to provide users seeking support
  214. config VERSION_PRODUCT
  215. string
  216. prompt "Product name"
  217. help
  218. This is the product name embedded in /etc/device_info
  219. Useful for OEMs building OpenWrt based firmware
  220. config VERSION_HWREV
  221. string
  222. prompt "Hardware revision"
  223. help
  224. This is the hardware revision string embedded in /etc/device_info
  225. Useful for OEMs building OpenWrt based firmware
  226. config VERSION_FILENAMES
  227. bool
  228. prompt "Version number in filenames"
  229. default y
  230. help
  231. Enable this to include the version number in firmware image, SDK-
  232. and Image Builder archive file names
  233. config VERSION_CODE_FILENAMES
  234. bool
  235. prompt "Revision code in filenames"
  236. default y
  237. help
  238. Enable this to include the revision identifier or the configured
  239. version code into the firmware image, SDK- and Image Builder archive
  240. file names
  241. endif
  242. menuconfig PER_FEED_REPO
  243. bool "Separate feed repositories" if IMAGEOPT
  244. default y
  245. help
  246. If set, a separate repository is generated within bin/*/packages/
  247. for the core packages and each enabled feed.
  248. source "tmp/.config-feeds.in"