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.

272 lines
8.5 KiB

  1. # Copyright (C) 2006-2012
  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. menuconfig PREINITOPT
  8. bool "Preinit configuration options" if IMAGEOPT
  9. default n
  10. help
  11. These options are used to control the environment used to initialize
  12. the system before running init (which typically mean /sbin/init which
  13. switches to multiuser mode).
  15. bool "Suppress stderr messages during preinit" if PREINITOPT
  16. default y
  17. help
  18. Sends stderr to null during preinit. This is the default behaviour
  19. in previous versions of OpenWRT. This also prevents init process
  20. itself from displaying stderr, however processes launched by init
  21. in multiuser through inittab will use the current terminal (e.g.
  22. the ash shell launched by inittab will display stderr). That's
  23. the same behaviour as seen in previous version of OpenWRT.
  25. int
  26. prompt "Failsafe wait timeout" if PREINITOPT
  27. default 2
  28. help
  29. How long to wait for failsafe mode to be entered before
  30. continuing with a regular boot if failsafe not selected.
  32. bool
  33. prompt "Show all preinit network messages" if PREINITOPT
  34. default n
  35. help
  36. Show preinit all network messages (via netmsg broadcast), not only
  37. the message indicating to press reset to enter failsafe. Note that
  38. if the architecture doesn't define an interface, and there is no
  39. 'Preinit network interface' defined, then no messages will be
  40. emitted, even if this is set.
  42. bool
  43. prompt "Suppress network message indicating failsafe" if PREINITOPT
  44. default n
  45. help
  46. If "Show all preinit network messages" above is not set, then
  47. setting this option suppresses the only message that would be
  48. emitted otherwise, name the network message to enter failsafe
  49. (via netmsg).
  51. string
  52. prompt "Preinit network interface" if PREINITOPT
  53. default ""
  54. help
  55. Interface for sending preinit messages to network, and any other
  56. default networking in failsafe or preinit. If empty
  57. uses $ifname (if defined in /etc/preinit.arch).
  58. config TARGET_PREINIT_IP
  59. string
  60. prompt "IP address for preinit network messages" if PREINITOPT
  61. default ""
  62. help
  63. IP address used to configure interface for preinit network
  64. messages, including failsafe messages
  66. string
  67. prompt "Netmask for preinit network messages" if PREINITOPT
  68. default ""
  69. help
  70. Netmask used to configure interface for preinit network
  71. messages, including failsafes messages
  73. string
  74. prompt "Broadcast address for preinit network messages" if PREINITOPT
  75. default ""
  76. help
  77. Broadcast address to which to send preinit network messages, as
  78. as failsafe messages
  79. menuconfig INITOPT
  80. bool "Init configuration options" if IMAGEOPT
  81. default n
  82. help
  83. These option choose the command that will run as the 'init' command
  84. (that is which is responsible for controlling the system once preinit
  85. transfers control to it) as well as some options controlling its
  86. behaviour. Normally init is /sbin/init.
  87. config TARGET_INIT_PATH
  88. string
  89. prompt "PATH for regular boot" if INITOPT
  90. default "/bin:/sbin:/usr/bin:/usr/sbin"
  91. help
  92. Default PATH used during normal operation
  93. config TARGET_INIT_ENV
  94. string
  95. prompt "Environment variables to set when starting init (start with none)" if INITOPT
  96. default ""
  97. help
  98. Should be a space seperated list of variable assignments. These
  99. variables will be present in the environment. Spaces may not be
  100. present (including through expansion) even in a quoted string
  101. (env doesn't understanding quoting).
  102. config TARGET_INIT_CMD
  103. string
  104. prompt "Init command" if INITOPT
  105. default "/sbin/init"
  106. help
  107. The executable to run as the init process. Is 'exec'd by
  108. preinit (which is the init that the kernel launches on boot).
  110. bool
  111. prompt "Suppress stderr messages of init" if INITOPT
  112. default y
  113. help
  114. Prevents showing stderr messages for init command if not already
  115. suppressed during preinit. This is the default behaviour in
  116. previous versions of OpenWRT. Removing this does nothing if
  117. stderr is suppressed during preinit (which is the default).
  118. menuconfig VERSIONOPT
  119. bool "Version configuration options" if IMAGEOPT
  120. default n
  121. help
  122. These options allow to override the version information embedded in
  123. the /etc/openwrt_version, /etc/openwrt_release, /etc/banner and
  124. /etc/opkg.conf files. Usually there is no need to set these, but
  125. they're useful for release builds or custom OpenWrt redistributions
  126. that should carry custom version tags.
  127. if VERSIONOPT
  128. config VERSION_DIST
  129. string
  130. prompt "Release distribution"
  131. default "OpenWrt"
  132. help
  133. This is the name of the release distribution.
  134. If unspecified, it defaults to OpenWrt.
  135. config VERSION_NICK
  136. string
  137. prompt "Release version nickname"
  138. help
  139. This is the release codename embedded in the image.
  140. If unspecified, it defaults to the name of source branch.
  141. config VERSION_NUMBER
  142. string
  143. prompt "Release version number"
  144. help
  145. This is the release version number embedded in the image.
  146. If unspecified, it defaults to the svn or git-svn revision
  147. of the build tree.
  148. config VERSION_REPO
  149. string
  150. prompt "Release repository"
  151. default ""
  152. help
  153. This is the repository address embedded in the image, it defaults
  154. to the trunk snapshot repo; the url may contain the following placeholders:
  155. %R .. Revision number
  156. %V .. Release version or revision number, uppercase
  157. %v .. Release version or revision number, lowercase
  158. %C .. Release version or "Bleeding Edge", uppercase
  159. %c .. Release version or "bleeding_edge", lowercase
  160. %N .. Release name, uppercase
  161. %n .. Release name, lowercase
  162. %D .. Distribution name or "OpenWrt", uppercase
  163. %d .. Distribution name or "openwrt", lowercase
  164. %T .. Target name
  165. %S .. Target/Subtarget name
  167. string
  168. prompt "Manufacturer name"
  169. help
  170. This is the manufacturer name embedded in /etc/device_info
  171. Useful for OEMs building OpenWrt based firmware
  172. config VERSION_PRODUCT
  173. string
  174. prompt "Product name"
  175. help
  176. This is the product name embedded in /etc/device_info
  177. Useful for OEMs building OpenWrt based firmware
  178. config VERSION_HWREV
  179. string
  180. prompt "Hardware revision"
  181. help
  182. This is the hardware revision string embedded in /etc/device_info
  183. Useful for OEMs building OpenWrt based firmware
  184. endif
  185. menuconfig PER_FEED_REPO
  186. bool "Separate feed repositories" if IMAGEOPT
  187. default y
  188. help
  189. If set, a separate repository is generated within bin/*/packages/
  190. for the core packages and each enabled feed.
  192. bool "Add available but not enabled feeds to opkg.conf"
  193. default y
  194. depends on PER_FEED_REPO
  195. help
  196. Add not installed or disabled feeds from feeds.conf to opkg.conf.
  198. bool "Comment out not enabled feeds"
  199. default y
  201. help
  202. Add not enabled feeds as commented out source lines to opkg.conf.
  203. source "tmp/"
  204. menuconfig SMIMEOPT
  205. bool "Package signing options" if IMAGEOPT
  206. default n
  207. help
  208. These options configure the signing key and certificate to
  209. be used for signing and verifying packages.
  210. config OPKGSMIME_CERT
  211. string
  212. prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
  213. help
  214. Path to the certificate to use for signature verification
  215. config OPKGSMIME_KEY
  216. string
  217. prompt "Path to signing key (PEM private key format)" if SMIMEOPT
  218. help
  219. Path to the key to use for signing packages
  221. bool
  222. default y
  223. prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
  224. help
  225. If this value is set, then the build will pause and request a passphrase
  226. from the command line when signing packages. This SHOULD NOT be used with
  227. automatic builds. If this value is not set, a file can be specified from
  228. which the passphrase will be read.
  230. string
  231. prompt "Path to a file containing the passphrase" if SMIMEOPT
  232. depends on !OPKGSMIME_PASSPHRASE
  233. help
  234. Path to a file containing the passphrase for the signing key.
  235. If the signing key is not encrypted and does not require a passphrase,
  236. this option may be left blank.