1
0

image-config.in 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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_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.10.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 libreCMC. 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 libreCMC
  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 libreCMC.
  145. config VERSION_NUMBER
  146. string
  147. prompt "Release version number"
  148. help
  149. This is the release version number embedded in the image.
  150. If unspecified, it defaults to SNAPSHOT for the master branch
  151. or to ##.##-SNAPSHOT on release branches.
  152. config VERSION_CODE
  153. string
  154. prompt "Release version code"
  155. help
  156. This is the release version code embedded in the image.
  157. If unspecified, it defaults to a revision number describing the
  158. repository version of the source, e.g. the number of commits
  159. since a branch point or a short Git commit ID.
  160. config VERSION_REPO
  161. string
  162. prompt "Release repository"
  163. default "http://downloads.lede-project.org/snapshots"
  164. help
  165. This is the repository address embedded in the image, it defaults
  166. to the trunk snapshot repo; the url may contain the following placeholders:
  167. %R .. Repository revision ID
  168. %V .. Configured release version number or "SNAPSHOT", uppercase
  169. %v .. Configured release version number or "snapshot", lowercase
  170. %C .. Configured release revision code or value of %R, uppercase
  171. %c .. Configured release revision code or value of %R, lowercase
  172. %D .. Distribution name or "libreCMC", uppercase
  173. %d .. Distribution name or "libreCMC", lowercase
  174. %T .. Target name
  175. %S .. Target/Subtarget name
  176. %A .. Package architecture
  177. %t .. Build taint flags, e.g. "no-all busybox"
  178. %M .. Manufacturer name or "libreCMC"
  179. %P .. Product name or "Generic"
  180. %h .. Hardware revision or "v0"
  181. config VERSION_HOME_URL
  182. string
  183. prompt "Release Homepage"
  184. help
  185. This is the release version homepage
  186. config VERSION_MANUFACTURER
  187. string
  188. prompt "Manufacturer name"
  189. help
  190. This is the manufacturer name embedded in /etc/device_info
  191. Useful for OEMs building libreCMC based firmware
  192. config VERSION_MANUFACTURER_URL
  193. string
  194. prompt "Manufacturer URL"
  195. help
  196. This is an URL to the manufacturer's website embedded in /etc/device_info
  197. Useful for OEMs building libreCMC based firmware
  198. config VERSION_BUG_URL
  199. string
  200. prompt "Bug reporting URL"
  201. help
  202. This is an URL to provide users for providing bug reports
  203. config VERSION_SUPPORT_URL
  204. string
  205. prompt "Support URL"
  206. help
  207. This an URL to provide users seeking support
  208. config VERSION_PRODUCT
  209. string
  210. prompt "Product name"
  211. help
  212. This is the product name embedded in /etc/device_info
  213. Useful for OEMs building libreCMC based firmware
  214. config VERSION_HWREV
  215. string
  216. prompt "Hardware revision"
  217. help
  218. This is the hardware revision string embedded in /etc/device_info
  219. Useful for OEMs building libreCMC based firmware
  220. config VERSION_FILENAMES
  221. bool
  222. prompt "Version number in filenames"
  223. default y
  224. help
  225. Enable this to include the version number in firmware image, SDK-
  226. and Image Builder archive file names
  227. config VERSION_CODE_FILENAMES
  228. bool
  229. prompt "Revision code in filenames"
  230. default y
  231. help
  232. Enable this to include the revision identifier or the configured
  233. version code into the firmware image, SDK- and Image Builder archive
  234. file names
  235. endif
  236. menuconfig PER_FEED_REPO
  237. bool "Separate feed repositories" if IMAGEOPT
  238. default y
  239. help
  240. If set, a separate repository is generated within bin/*/packages/
  241. for the core packages and each enabled feed.
  242. source "tmp/.config-feeds.in"