image-config.in 8.9 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. 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).
  14. config TARGET_PREINIT_SUPPRESS_STDERR
  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.
  24. config TARGET_PREINIT_TIMEOUT
  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.
  31. config TARGET_PREINIT_SHOW_NETMSG
  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.
  41. config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
  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).
  50. config TARGET_PREINIT_IFNAME
  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 "192.168.1.1"
  62. help
  63. IP address used to configure interface for preinit network
  64. messages, including failsafe messages
  65. config TARGET_PREINIT_NETMASK
  66. string
  67. prompt "Netmask for preinit network messages" if PREINITOPT
  68. default "255.255.255.0"
  69. help
  70. Netmask used to configure interface for preinit network
  71. messages, including failsafes messages
  72. config TARGET_PREINIT_BROADCAST
  73. string
  74. prompt "Broadcast address for preinit network messages" if PREINITOPT
  75. default "192.168.1.255"
  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 "/usr/sbin:/usr/bin:/sbin:/bin"
  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).
  109. config TARGET_INIT_SUPPRESS_STDERR
  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 "http://downloads.openwrt.org/%n/%v/%S/packages"
  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
  166. %t .. Build taint flags, e.g. "no-all busybox"
  167. %M .. Manufacturer name or "OpenWrt"
  168. %P .. Product name or "Generic"
  169. %h .. Hardware revision or "v0"
  170. config VERSION_MANUFACTURER
  171. string
  172. prompt "Manufacturer name"
  173. help
  174. This is the manufacturer name embedded in /etc/device_info
  175. Useful for OEMs building OpenWrt based firmware
  176. config VERSION_PRODUCT
  177. string
  178. prompt "Product name"
  179. help
  180. This is the product name embedded in /etc/device_info
  181. Useful for OEMs building OpenWrt based firmware
  182. config VERSION_HWREV
  183. string
  184. prompt "Hardware revision"
  185. help
  186. This is the hardware revision string embedded in /etc/device_info
  187. Useful for OEMs building OpenWrt based firmware
  188. config VERSION_FILENAMES
  189. bool
  190. prompt "Version number in filenames"
  191. default y
  192. help
  193. Enable this to include the version number in firmware image, SDK-
  194. and Image Builder archive file names
  195. endif
  196. menuconfig PER_FEED_REPO
  197. bool "Separate feed repositories" if IMAGEOPT
  198. default y
  199. help
  200. If set, a separate repository is generated within bin/*/packages/
  201. for the core packages and each enabled feed.
  202. config PER_FEED_REPO_ADD_DISABLED
  203. bool "Add available but not enabled feeds to opkg.conf"
  204. default y
  205. depends on PER_FEED_REPO
  206. help
  207. Add not installed or disabled feeds from feeds.conf to opkg.conf.
  208. config PER_FEED_REPO_ADD_COMMENTED
  209. bool "Comment out not enabled feeds"
  210. default y
  211. depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
  212. help
  213. Add not enabled feeds as commented out source lines to opkg.conf.
  214. source "tmp/.config-feeds.in"
  215. menuconfig SMIMEOPT
  216. bool "Package signing options" if IMAGEOPT
  217. default n
  218. help
  219. These options configure the signing key and certificate to
  220. be used for signing and verifying packages.
  221. config OPKGSMIME_CERT
  222. string
  223. prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
  224. help
  225. Path to the certificate to use for signature verification
  226. config OPKGSMIME_KEY
  227. string
  228. prompt "Path to signing key (PEM private key format)" if SMIMEOPT
  229. help
  230. Path to the key to use for signing packages
  231. config OPKGSMIME_PASSPHRASE
  232. bool
  233. default y
  234. prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
  235. help
  236. If this value is set, then the build will pause and request a passphrase
  237. from the command line when signing packages. This SHOULD NOT be used with
  238. automatic builds. If this value is not set, a file can be specified from
  239. which the passphrase will be read.
  240. config OPKGSMIME_PASSFILE
  241. string
  242. prompt "Path to a file containing the passphrase" if SMIMEOPT
  243. depends on !OPKGSMIME_PASSPHRASE
  244. help
  245. Path to a file containing the passphrase for the signing key.
  246. If the signing key is not encrypted and does not require a passphrase,
  247. this option may be left blank.