image-config.in 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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 libreCMC. 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 libreCMC.
  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.10.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.10.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 libreCMC. 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/librecmc_version, /etc/librecmc_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 libreCMC redistributions
  126. that should carry custom version tags.
  127. if VERSIONOPT
  128. config VERSION_DIST
  129. string
  130. prompt "Release distribution"
  131. default "libreCMC"
  132. help
  133. This is the name of the release distribution.
  134. If unspecified, it defaults to libreCMC.
  135. config VERSION_NICK
  136. string
  137. prompt "Release version nickname"
  138. default "Elegant Eleanor"
  139. help
  140. This is the release codename embedded in the image.
  141. If unspecified, it defaults to the name of source branch.
  142. config VERSION_NUMBER
  143. string
  144. prompt "Release version number"
  145. default "v1.3"
  146. help
  147. This is the release version number embedded in the image.
  148. If unspecified, it defaults to the svn or git-svn revision
  149. of the build tree.
  150. config VERSION_REPO
  151. string
  152. prompt "Release repository"
  153. default "http://downloads.librecmc.org/snapshots/%v/%S/packages"
  154. help
  155. This is the repository address embedded in the image, it defaults
  156. to the trunk snapshot repo; the url may contain the following placeholders:
  157. %R .. Revision number
  158. %V .. Release version or revision number, uppercase
  159. %v .. Release version or revision number, lowercase
  160. %C .. Release version or "Bleeding Edge", uppercase
  161. %c .. Release version or "bleeding_edge", lowercase
  162. %N .. Release name, uppercase
  163. %n .. Release name, lowercase
  164. %D .. Distribution name or "libreCMC", uppercase
  165. %d .. Distribution name or "librecmc", lowercase
  166. %T .. Target name
  167. %S .. Target/Subtarget name
  168. config VERSION_MANUFACTURER
  169. string
  170. prompt "Manufacturer name"
  171. help
  172. This is the manufacturer name embedded in /etc/device_info
  173. Useful for OEMs building libreCMC based firmware
  174. config VERSION_PRODUCT
  175. string
  176. prompt "Product name"
  177. help
  178. This is the product name embedded in /etc/device_info
  179. Useful for OEMs building libreCMC based firmware
  180. config VERSION_HWREV
  181. string
  182. prompt "Hardware revision"
  183. help
  184. This is the hardware revision string embedded in /etc/device_info
  185. Useful for OEMs building libreCMC based firmware
  186. endif
  187. menuconfig PER_FEED_REPO
  188. bool "Separate feed repositories" if IMAGEOPT
  189. default y
  190. help
  191. If set, a separate repository is generated within bin/*/packages/
  192. for the core packages and each enabled feed.
  193. config PER_FEED_REPO_ADD_DISABLED
  194. bool "Add available but not enabled feeds to opkg.conf"
  195. default y
  196. depends on PER_FEED_REPO
  197. help
  198. Add not installed or disabled feeds from feeds.conf to opkg.conf.
  199. config PER_FEED_REPO_ADD_COMMENTED
  200. bool "Comment out not enabled feeds"
  201. default y
  202. depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
  203. help
  204. Add not enabled feeds as commented out source lines to opkg.conf.
  205. source "tmp/.config-feeds.in"
  206. menuconfig SMIMEOPT
  207. bool "Package signing options" if IMAGEOPT
  208. default n
  209. help
  210. These options configure the signing key and certificate to
  211. be used for signing and verifying packages.
  212. config OPKGSMIME_CERT
  213. string
  214. prompt "Path to certificate (PEM certificate format)" if SMIMEOPT
  215. help
  216. Path to the certificate to use for signature verification
  217. config OPKGSMIME_KEY
  218. string
  219. prompt "Path to signing key (PEM private key format)" if SMIMEOPT
  220. help
  221. Path to the key to use for signing packages
  222. config OPKGSMIME_PASSPHRASE
  223. bool
  224. default y
  225. prompt "Wait for a passphrase when signing packages?" if SMIMEOPT
  226. help
  227. If this value is set, then the build will pause and request a passphrase
  228. from the command line when signing packages. This SHOULD NOT be used with
  229. automatic builds. If this value is not set, a file can be specified from
  230. which the passphrase will be read.
  231. config OPKGSMIME_PASSFILE
  232. string
  233. prompt "Path to a file containing the passphrase" if SMIMEOPT
  234. depends on !OPKGSMIME_PASSPHRASE
  235. help
  236. Path to a file containing the passphrase for the signing key.
  237. If the signing key is not encrypted and does not require a passphrase,
  238. this option may be left blank.