image-config.in 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. config EXTRA_IMAGE_NAME
  8. string
  9. prompt "Extra image filename" if IMAGEOPT
  10. default ""
  11. help
  12. Add this to the output image filenames, to distinguish between
  13. different builds for the same hardware type.
  14. config TARGET_DEFAULT_LAN_IP_FROM_PREINIT
  15. bool "Use preinit IP configuration as default LAN IP" if IMAGEOPT
  16. default n
  17. help
  18. Enabling this will set the default LAN IP address and netmask
  19. to the preinit values set in the image config.
  20. menuconfig PREINITOPT
  21. bool "Preinit configuration options" if IMAGEOPT
  22. default n
  23. help
  24. These options are used to control the environment used to initialize
  25. the system before running init (which typically mean /sbin/init which
  26. switches to multiuser mode).
  27. config TARGET_PREINIT_SUPPRESS_STDERR
  28. bool "Suppress stderr messages during preinit" if PREINITOPT
  29. default y
  30. help
  31. Sends stderr to null during preinit. This is the default behaviour
  32. in previous versions of OpenWrt. This also prevents init process
  33. itself from displaying stderr, however processes launched by init
  34. in multiuser through inittab will use the current terminal (e.g.
  35. the ash shell launched by inittab will display stderr). That's
  36. the same behaviour as seen in previous version of OpenWrt.
  37. config TARGET_PREINIT_DISABLE_FAILSAFE
  38. bool
  39. prompt "Disable failsafe" if PREINITOPT
  40. default n
  41. help
  42. Disable failsafe mode. While it is very handy while
  43. experimenting or developing it really ought to be
  44. disabled in production environments as it is a major
  45. security loophole.
  46. config TARGET_PREINIT_TIMEOUT
  47. int
  48. prompt "Failsafe/Debug wait timeout" if PREINITOPT
  49. default 4
  50. help
  51. How long to wait for failsafe mode to be entered or for
  52. a debug option to be pressed before continuing with a
  53. regular boot.
  54. config TARGET_PREINIT_SHOW_NETMSG
  55. bool
  56. prompt "Show all preinit network messages" if PREINITOPT
  57. default n
  58. help
  59. Show preinit all network messages (via netmsg broadcast), not only
  60. the message indicating to press reset to enter failsafe. Note that
  61. if the architecture doesn't define an interface, and there is no
  62. 'Preinit network interface' defined, then no messages will be
  63. emitted, even if this is set.
  64. config TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG
  65. bool
  66. prompt "Suppress network message indicating failsafe" if ( PREINITOPT && !TARGET_PREINIT_SHOW_NETMSG && !TARGET_PREINIT_DISABLE_FAILSAFE )
  67. default n
  68. help
  69. If "Show all preinit network messages" above is not set, then
  70. setting this option suppresses the only message that would be
  71. emitted otherwise, name the network message to enter failsafe
  72. (via netmsg).
  73. config TARGET_PREINIT_IFNAME
  74. string
  75. prompt "Preinit network interface" if PREINITOPT
  76. default ""
  77. help
  78. Interface for sending preinit messages to network, and any other
  79. default networking in failsafe or preinit. If empty
  80. uses $ifname (if defined in /etc/preinit.arch).
  81. config TARGET_PREINIT_IP
  82. string
  83. prompt "IP address for preinit network messages" if PREINITOPT
  84. default "192.168.1.1"
  85. help
  86. IP address used to configure interface for preinit network
  87. messages, including failsafe messages
  88. config TARGET_PREINIT_NETMASK
  89. string
  90. prompt "Netmask for preinit network messages" if PREINITOPT
  91. default "255.255.255.0"
  92. help
  93. Netmask used to configure interface for preinit network
  94. messages, including failsafes messages
  95. config TARGET_PREINIT_BROADCAST
  96. string
  97. prompt "Broadcast address for preinit network messages" if PREINITOPT
  98. default "192.168.1.255"
  99. help
  100. Broadcast address to which to send preinit network messages, as
  101. as failsafe messages
  102. menuconfig INITOPT
  103. bool "Init configuration options" if IMAGEOPT
  104. default n
  105. help
  106. These option choose the command that will run as the 'init' command
  107. (that is which is responsible for controlling the system once preinit
  108. transfers control to it) as well as some options controlling its
  109. behaviour. Normally init is /sbin/init.
  110. config TARGET_INIT_PATH
  111. string
  112. prompt "PATH for regular boot" if INITOPT
  113. default "/usr/sbin:/usr/bin:/sbin:/bin"
  114. help
  115. Default PATH used during normal operation
  116. config TARGET_INIT_ENV
  117. string
  118. prompt "Environment variables to set when starting init (start with none)" if INITOPT
  119. default ""
  120. help
  121. Should be a space separated list of variable assignments. These
  122. variables will be present in the environment. Spaces may not be
  123. present (including through expansion) even in a quoted string
  124. (env doesn't understanding quoting).
  125. config TARGET_INIT_CMD
  126. string
  127. prompt "Init command" if INITOPT
  128. default "/sbin/init"
  129. help
  130. The executable to run as the init process. Is 'exec'd by
  131. preinit (which is the init that the kernel launches on boot).
  132. config TARGET_INIT_SUPPRESS_STDERR
  133. bool
  134. prompt "Suppress stderr messages of init" if INITOPT
  135. default y
  136. help
  137. Prevents showing stderr messages for init command if not already
  138. suppressed during preinit. This is the default behaviour in
  139. previous versions of OpenWrt. Removing this does nothing if
  140. stderr is suppressed during preinit (which is the default).
  141. menuconfig VERSIONOPT
  142. bool "Version configuration options" if IMAGEOPT
  143. default n
  144. help
  145. These options allow to override the version information embedded in
  146. the /etc/openwrt_version, /etc/openwrt_release, /etc/banner,
  147. /etc/opkg.conf, and /etc/os-release files. Usually there is no need
  148. to set these, but they're useful for release builds or custom OpenWrt
  149. redistributions that should carry custom version tags.
  150. if VERSIONOPT
  151. config VERSION_DIST
  152. string
  153. prompt "Release distribution"
  154. default "OpenWrt"
  155. help
  156. This is the name of the release distribution.
  157. If unspecified, it defaults to OpenWrt.
  158. config VERSION_NUMBER
  159. string
  160. prompt "Release version number"
  161. help
  162. This is the release version number embedded in the image.
  163. If unspecified, it defaults to SNAPSHOT for the master branch
  164. or to ##.##-SNAPSHOT on release branches.
  165. config VERSION_CODE
  166. string
  167. prompt "Release version code"
  168. help
  169. This is the release version code embedded in the image.
  170. If unspecified, it defaults to a revision number describing the
  171. repository version of the source, e.g. the number of commits
  172. since a branch point or a short Git commit ID.
  173. config VERSION_REPO
  174. string
  175. prompt "Release repository"
  176. default "https://downloads.openwrt.org/snapshots"
  177. help
  178. This is the repository address embedded in the image, it defaults
  179. to the trunk snapshot repo; the url may contain the following placeholders:
  180. %R .. Repository revision ID
  181. %V .. Configured release version number or "SNAPSHOT", uppercase
  182. %v .. Configured release version number or "snapshot", lowercase
  183. %C .. Configured release revision code or value of %R, uppercase
  184. %c .. Configured release revision code or value of %R, lowercase
  185. %D .. Distribution name or "OpenWrt", uppercase
  186. %d .. Distribution name or "openwrt", lowercase
  187. %T .. Target name
  188. %S .. Target/Subtarget name
  189. %A .. Package architecture
  190. %t .. Build taint flags, e.g. "no-all busybox"
  191. %M .. Manufacturer name or "OpenWrt"
  192. %P .. Product name or "Generic"
  193. %h .. Hardware revision or "v0"
  194. config VERSION_HOME_URL
  195. string
  196. prompt "Release Homepage"
  197. help
  198. This is the release version homepage
  199. config VERSION_MANUFACTURER
  200. string
  201. prompt "Manufacturer name"
  202. help
  203. This is the manufacturer name embedded in /etc/device_info
  204. Useful for OEMs building OpenWrt based firmware
  205. config VERSION_MANUFACTURER_URL
  206. string
  207. prompt "Manufacturer URL"
  208. help
  209. This is an URL to the manufacturer's website embedded in /etc/device_info
  210. Useful for OEMs building OpenWrt based firmware
  211. config VERSION_BUG_URL
  212. string
  213. prompt "Bug reporting URL"
  214. help
  215. This is an URL to provide users for providing bug reports
  216. config VERSION_SUPPORT_URL
  217. string
  218. prompt "Support URL"
  219. help
  220. This an URL to provide users seeking support
  221. config VERSION_FIRMWARE_URL
  222. string
  223. prompt "Firmware URL"
  224. help
  225. This is an URL to provide users for downloading firmware
  226. config VERSION_PRODUCT
  227. string
  228. prompt "Product name"
  229. help
  230. This is the product name embedded in /etc/device_info
  231. Useful for OEMs building OpenWrt based firmware
  232. config VERSION_HWREV
  233. string
  234. prompt "Hardware revision"
  235. help
  236. This is the hardware revision string embedded in /etc/device_info
  237. Useful for OEMs building OpenWrt based firmware
  238. config VERSION_FILENAMES
  239. bool
  240. prompt "Version number in filenames"
  241. default y
  242. help
  243. Enable this to include the version number in firmware image, SDK-
  244. and Image Builder archive file names
  245. config VERSION_CODE_FILENAMES
  246. bool
  247. prompt "Revision code in filenames"
  248. default y
  249. help
  250. Enable this to include the revision identifier or the configured
  251. version code into the firmware image, SDK- and Image Builder archive
  252. file names
  253. endif
  254. menuconfig PER_FEED_REPO
  255. bool "Separate feed repositories" if IMAGEOPT
  256. default y
  257. help
  258. If set, a separate repository is generated within bin/*/packages/
  259. for the core packages and each enabled feed.
  260. source "tmp/.config-feeds.in"