image-config.in 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 "/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).
  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. config VERSION_DIST
  128. string
  129. prompt "Release distribution" if VERSIONOPT
  130. default "OpenWrt" if VERSIONOPT
  131. help
  132. This is the name of the release distribution.
  133. If unspecified, it defaults to OpenWrt.
  134. config VERSION_NICK
  135. string
  136. prompt "Release version nickname" if VERSIONOPT
  137. help
  138. This is the release codename embedded in the image.
  139. If unspecified, it defaults to the name of source branch.
  140. config VERSION_NUMBER
  141. string
  142. prompt "Release version number" if VERSIONOPT
  143. help
  144. This is the release version number embedded in the image.
  145. If unspecified, it defaults to the svn or git-svn revision
  146. of the build tree.
  147. config VERSION_REPO
  148. string
  149. prompt "Release repository" if VERSIONOPT
  150. default "http://downloads.openwrt.org/snapshots/trunk/%T/packages" if VERSIONOPT
  151. help
  152. This is the repository address embedded in the image, it defaults
  153. to the trunk snapshot repo; the url may contain the following placeholders:
  154. %R .. Revision number
  155. %V .. Release version or revision number, uppercase
  156. %v .. Release version or revision number, lowercase
  157. %C .. Release version or "Bleeding Edge", uppercase
  158. %c .. Release version or "bleeding_edge", lowercase
  159. %N .. Release name, uppercase
  160. %n .. Release name, lowercase
  161. %D .. Distribution name or "OpenWrt", uppercase
  162. %d .. Distribution name or "openwrt", lowercase
  163. %T .. Target name
  164. %S .. Target/Subtarget name
  165. menuconfig SMIMEOPT
  166. bool "Package signing options" if IMAGEOPT
  167. default n
  168. help
  169. These options configure the signing key and certificate to
  170. be used for signing and verifying packages.
  171. config OPKGSMIME_CERT
  172. string
  173. prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
  174. help
  175. Path to the certificate to use for signature verification
  176. config OPKGSMIME_KEY
  177. string
  178. prompt "Path to signing key (PEM private key format)" if SMIMEOPT
  179. help
  180. Path to the key to use for signing packages
  181. config OPKGSMIME_PASSPHRASE
  182. bool
  183. default y
  184. prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
  185. help
  186. If this value is set, then the build will pause and request a passphrase
  187. from the command line when signing packages. This SHOULD NOT be used with
  188. automatic builds. If this value is not set, a file can be specified from
  189. which the passphrase will be read.
  190. config OPKGSMIME_PASSFILE
  191. string
  192. prompt "Path to a file containing the passphrase" if SMIMEOPT
  193. depends on !OPKGSMIME_PASSPHRASE
  194. help
  195. Path to a file containing the passphrase for the signing key.
  196. If the signing key is not encrypted and does not require a passphrase,
  197. this option may be left blank.