1
0

image-config.in 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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.10.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,
  134. /etc/opkg.conf, and /etc/os-release files. Usually there is no need
  135. to set these, but they're useful for release builds or custom OpenWrt
  136. redistributions that should carry custom version tags.
  137. if VERSIONOPT
  138. config VERSION_DIST
  139. string
  140. prompt "Release distribution"
  141. default "libreCMC"
  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 SNAPSHOT for the master branch
  157. or to ##.##-SNAPSHOT on release branches.
  158. config VERSION_CODE
  159. string
  160. prompt "Release version code"
  161. help
  162. This is the release version code embedded in the image.
  163. If unspecified, it defaults to a revision number describing the
  164. repository version of the source, e.g. the number of commits
  165. since a branch point or a short Git commit ID.
  166. config VERSION_REPO
  167. string
  168. prompt "Release repository"
  169. default "http://downloads.lede-project.org/releases/17.01-SNAPSHOT"
  170. help
  171. This is the repository address embedded in the image, it defaults
  172. to the trunk snapshot repo; the url may contain the following placeholders:
  173. %R .. Repository revision ID
  174. %V .. Configured release version number or "SNAPSHOT", uppercase
  175. %v .. Configured release version number or "snapshot", lowercase
  176. %C .. Configured release revision code or value of %R, uppercase
  177. %c .. Configured release revision code or value of %R, lowercase
  178. %N .. Release name, uppercase
  179. %n .. Release name, lowercase
  180. %D .. Distribution name or "Lede", uppercase
  181. %d .. Distribution name or "lede", lowercase
  182. %T .. Target name
  183. %S .. Target/Subtarget name
  184. %A .. Package architecture
  185. %t .. Build taint flags, e.g. "no-all busybox"
  186. %M .. Manufacturer name or "Lede"
  187. %P .. Product name or "Generic"
  188. %h .. Hardware revision or "v0"
  189. config VERSION_MANUFACTURER
  190. string
  191. prompt "Manufacturer name"
  192. help
  193. This is the manufacturer name embedded in /etc/device_info
  194. Useful for OEMs building OpenWrt based firmware
  195. config VERSION_MANUFACTURER_URL
  196. string
  197. prompt "Manufacturer URL"
  198. help
  199. This is an URL to the manufacturer's website embedded in /etc/device_info
  200. Useful for OEMs building OpenWrt based firmware
  201. config VERSION_BUG_URL
  202. string
  203. prompt "Bug reporting URL"
  204. help
  205. This is an URL to provide users for providing bug reports
  206. config VERSION_SUPPORT_URL
  207. string
  208. prompt "Support URL"
  209. help
  210. This an URL to provide users seeking support
  211. config VERSION_PRODUCT
  212. string
  213. prompt "Product name"
  214. help
  215. This is the product name embedded in /etc/device_info
  216. Useful for OEMs building OpenWrt based firmware
  217. config VERSION_HWREV
  218. string
  219. prompt "Hardware revision"
  220. help
  221. This is the hardware revision string embedded in /etc/device_info
  222. Useful for OEMs building OpenWrt based firmware
  223. config VERSION_FILENAMES
  224. bool
  225. prompt "Version number in filenames"
  226. default y
  227. help
  228. Enable this to include the version number in firmware image, SDK-
  229. and Image Builder archive file names
  230. config VERSION_CODE_FILENAMES
  231. bool
  232. prompt "Revision code in filenames"
  233. default y
  234. help
  235. Enable this to include the revision identifier or the configured
  236. version code into the firmware image, SDK- and Image Builder archive
  237. file names
  238. endif
  239. menuconfig PER_FEED_REPO
  240. bool "Separate feed repositories" if IMAGEOPT
  241. default y
  242. help
  243. If set, a separate repository is generated within bin/*/packages/
  244. for the core packages and each enabled feed.
  245. config PER_FEED_REPO_ADD_DISABLED
  246. bool "Add available but not enabled feeds to opkg.conf"
  247. default y
  248. depends on PER_FEED_REPO
  249. help
  250. Add not installed or disabled feeds from feeds.conf to opkg.conf.
  251. config PER_FEED_REPO_ADD_COMMENTED
  252. bool "Comment out not enabled feeds"
  253. default !BUILDBOT
  254. depends on PER_FEED_REPO && PER_FEED_REPO_ADD_DISABLED
  255. help
  256. Add not enabled feeds as commented out source lines to opkg.conf.
  257. source "tmp/.config-feeds.in"