image-config.in 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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_DISABLE_FAILSAFE
  25. bool
  26. prompt "Disable failsafe" if PREINITOPT
  27. default n
  28. help
  29. Disable failsafe mode. While it is very handy while
  30. experimenting or developing it really ought to be
  31. disabled in production environments as it is a major
  32. security loophole.
  33. config TARGET_PREINIT_TIMEOUT
  34. int
  35. prompt "Failsafe/Debug wait timeout" if PREINITOPT
  36. default 2
  37. help
  38. How long to wait for failsafe mode to be entered or for
  39. a debug option to be pressed before continuing with a
  40. regular boot.
  41. config TARGET_PREINIT_SHOW_NETMSG
  42. bool
  43. prompt "Show all preinit network messages" if PREINITOPT
  44. default n
  45. help
  46. Show preinit all network messages (via netmsg broadcast), not only
  47. the message indicating to press reset to enter failsafe. Note that
  48. if the architecture doesn't define an interface, and there is no
  49. 'Preinit network interface' defined, then no messages will be
  50. emitted, even if this is set.
  51. config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
  52. bool
  53. prompt "Suppress network message indicating failsafe" if ( PREINITOPT && !TARGET_PREINIT_SHOW_NETMSG && !TARGET_PREINIT_DISABLE_FAILSAFE )
  54. default n
  55. help
  56. If "Show all preinit network messages" above is not set, then
  57. setting this option suppresses the only message that would be
  58. emitted otherwise, name the network message to enter failsafe
  59. (via netmsg).
  60. config TARGET_PREINIT_IFNAME
  61. string
  62. prompt "Preinit network interface" if PREINITOPT
  63. default ""
  64. help
  65. Interface for sending preinit messages to network, and any other
  66. default networking in failsafe or preinit. If empty
  67. uses $ifname (if defined in /etc/preinit.arch).
  68. config TARGET_PREINIT_IP
  69. string
  70. prompt "IP address for preinit network messages" if PREINITOPT
  71. default "192.168.1.1"
  72. help
  73. IP address used to configure interface for preinit network
  74. messages, including failsafe messages
  75. config TARGET_PREINIT_NETMASK
  76. string
  77. prompt "Netmask for preinit network messages" if PREINITOPT
  78. default "255.255.255.0"
  79. help
  80. Netmask used to configure interface for preinit network
  81. messages, including failsafes messages
  82. config TARGET_PREINIT_BROADCAST
  83. string
  84. prompt "Broadcast address for preinit network messages" if PREINITOPT
  85. default "192.168.1.255"
  86. help
  87. Broadcast address to which to send preinit network messages, as
  88. as failsafe messages
  89. menuconfig INITOPT
  90. bool "Init configuration options" if IMAGEOPT
  91. default n
  92. help
  93. These option choose the command that will run as the 'init' command
  94. (that is which is responsible for controlling the system once preinit
  95. transfers control to it) as well as some options controlling its
  96. behaviour. Normally init is /sbin/init.
  97. config TARGET_INIT_PATH
  98. string
  99. prompt "PATH for regular boot" if INITOPT
  100. default "/usr/sbin:/usr/bin:/sbin:/bin"
  101. help
  102. Default PATH used during normal operation
  103. config TARGET_INIT_ENV
  104. string
  105. prompt "Environment variables to set when starting init (start with none)" if INITOPT
  106. default ""
  107. help
  108. Should be a space seperated list of variable assignments. These
  109. variables will be present in the environment. Spaces may not be
  110. present (including through expansion) even in a quoted string
  111. (env doesn't understanding quoting).
  112. config TARGET_INIT_CMD
  113. string
  114. prompt "Init command" if INITOPT
  115. default "/sbin/init"
  116. help
  117. The executable to run as the init process. Is 'exec'd by
  118. preinit (which is the init that the kernel launches on boot).
  119. config TARGET_INIT_SUPPRESS_STDERR
  120. bool
  121. prompt "Suppress stderr messages of init" if INITOPT
  122. default y
  123. help
  124. Prevents showing stderr messages for init command if not already
  125. suppressed during preinit. This is the default behaviour in
  126. previous versions of OpenWrt. Removing this does nothing if
  127. stderr is suppressed during preinit (which is the default).
  128. menuconfig VERSIONOPT
  129. bool "Version configuration options" if IMAGEOPT
  130. default n
  131. help
  132. These options allow to override the version information embedded in
  133. the /etc/openwrt_version, /etc/openwrt_release, /etc/banner and
  134. /etc/opkg.conf files. Usually there is no need to set these, but
  135. they're useful for release builds or custom OpenWrt redistributions
  136. that should carry custom version tags.
  137. if VERSIONOPT
  138. config VERSION_DIST
  139. string
  140. prompt "Release distribution"
  141. default "OpenWrt"
  142. help
  143. This is the name of the release distribution.
  144. If unspecified, it defaults to OpenWrt.
  145. config VERSION_NICK
  146. string
  147. prompt "Release version nickname"
  148. help
  149. This is the release codename embedded in the image.
  150. If unspecified, it defaults to the name of source branch.
  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 the svn or git-svn revision
  157. of the build tree.
  158. config VERSION_REPO
  159. string
  160. prompt "Release repository"
  161. default "http://downloads.openwrt.org/snapshots/trunk/%S/packages"
  162. help
  163. This is the repository address embedded in the image, it defaults
  164. to the trunk snapshot repo; the url may contain the following placeholders:
  165. %R .. Revision number
  166. %V .. Release version or revision number, uppercase
  167. %v .. Release version or revision number, lowercase
  168. %C .. Release version or "Bleeding Edge", uppercase
  169. %c .. Release version or "bleeding_edge", lowercase
  170. %N .. Release name, uppercase
  171. %n .. Release name, lowercase
  172. %D .. Distribution name or "OpenWrt", uppercase
  173. %d .. Distribution name or "openwrt", lowercase
  174. %T .. Target name
  175. %S .. Target/Subtarget name
  176. %t .. Build taint flags, e.g. "no-all busybox"
  177. %M .. Manufacturer name or "OpenWrt"
  178. %P .. Product name or "Generic"
  179. %h .. Hardware revision or "v0"
  180. config VERSION_MANUFACTURER
  181. string
  182. prompt "Manufacturer name"
  183. help
  184. This is the manufacturer name embedded in /etc/device_info
  185. Useful for OEMs building OpenWrt based firmware
  186. config VERSION_MANUFACTURER_URL
  187. string
  188. prompt "Manufacturer URL"
  189. help
  190. This is an URL to the manufacturer's website embedded in /etc/device_info
  191. Useful for OEMs building OpenWrt based firmware
  192. config VERSION_PRODUCT
  193. string
  194. prompt "Product name"
  195. help
  196. This is the product name embedded in /etc/device_info
  197. Useful for OEMs building OpenWrt based firmware
  198. config VERSION_HWREV
  199. string
  200. prompt "Hardware revision"
  201. help
  202. This is the hardware revision string embedded in /etc/device_info
  203. Useful for OEMs building OpenWrt based firmware
  204. config VERSION_FILENAMES
  205. bool
  206. prompt "Version number in filenames"
  207. default y
  208. help
  209. Enable this to include the version number in firmware image, SDK-
  210. and Image Builder archive file names
  211. endif
  212. menuconfig PER_FEED_REPO
  213. bool "Separate feed repositories" if IMAGEOPT
  214. default y
  215. help
  216. If set, a separate repository is generated within bin/*/packages/
  217. for the core packages and each enabled feed.
  218. config PER_FEED_REPO_ADD_DISABLED
  219. bool "Add available but not enabled feeds to opkg.conf"
  220. default y
  221. depends on PER_FEED_REPO
  222. help
  223. Add not installed or disabled feeds from feeds.conf to opkg.conf.
  224. config PER_FEED_REPO_ADD_COMMENTED
  225. bool "Comment out not enabled feeds"
  226. default y
  227. depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
  228. help
  229. Add not enabled feeds as commented out source lines to opkg.conf.
  230. source "tmp/.config-feeds.in"
  231. menuconfig SMIMEOPT
  232. bool "Package signing options" if IMAGEOPT
  233. default n
  234. help
  235. These options configure the signing key and certificate to
  236. be used for signing and verifying packages.
  237. config OPKGSMIME_CERT
  238. string
  239. prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
  240. help
  241. Path to the certificate to use for signature verification
  242. config OPKGSMIME_KEY
  243. string
  244. prompt "Path to signing key (PEM private key format)" if SMIMEOPT
  245. help
  246. Path to the key to use for signing packages
  247. config OPKGSMIME_PASSPHRASE
  248. bool
  249. default y
  250. prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
  251. help
  252. If this value is set, then the build will pause and request a passphrase
  253. from the command line when signing packages. This SHOULD NOT be used with
  254. automatic builds. If this value is not set, a file can be specified from
  255. which the passphrase will be read.
  256. config OPKGSMIME_PASSFILE
  257. string
  258. prompt "Path to a file containing the passphrase" if SMIMEOPT
  259. depends on !OPKGSMIME_PASSPHRASE
  260. help
  261. Path to a file containing the passphrase for the signing key.
  262. If the signing key is not encrypted and does not require a passphrase,
  263. this option may be left blank.