Config.in 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. menu "System configuration"
  2. config BR2_TARGET_GENERIC_HOSTNAME
  3. string "System hostname"
  4. default "buildroot"
  5. help
  6. Select system hostname to be stored in /etc/hostname.
  7. config BR2_TARGET_GENERIC_ISSUE
  8. string "System banner"
  9. default "Welcome to Buildroot"
  10. help
  11. Select system banner (/etc/issue) to be displayed at login.
  12. choice
  13. bool "Passwords encoding"
  14. default BR2_TARGET_GENERIC_PASSWD_MD5
  15. help
  16. Choose the password encoding scheme to use when Buildroot
  17. needs to encode a password (eg. the root password, below).
  18. Note: this is used at build-time, and *not* at runtime.
  19. config BR2_TARGET_GENERIC_PASSWD_DES
  20. bool "des"
  21. help
  22. Use standard 56-bit DES-based crypt(3) to encode passwords.
  23. Old, wildly available, but also the weakest, very susceptible to
  24. brute-force attacks.
  25. config BR2_TARGET_GENERIC_PASSWD_MD5
  26. bool "md5"
  27. help
  28. Use MD5 to encode passwords.
  29. The default. Wildly available, and pretty good.
  30. Although pretty strong, MD5 is now an old hash function, and
  31. suffers from some weaknesses, which makes it susceptible to
  32. brute-force attacks.
  33. config BR2_TARGET_GENERIC_PASSWD_SHA256
  34. bool "sha-256"
  35. help
  36. Use SHA256 to encode passwords.
  37. Very strong, but not ubiquitous, although available in glibc
  38. for some time now. Choose only if you are sure your C library
  39. understands SHA256 passwords.
  40. config BR2_TARGET_GENERIC_PASSWD_SHA512
  41. bool "sha-512"
  42. help
  43. Use SHA512 to encode passwords.
  44. Extremely strong, but not ubiquitous, although available in glibc
  45. for some time now. Choose only if you are sure your C library
  46. understands SHA512 passwords.
  47. endchoice # Passwd encoding
  48. config BR2_TARGET_GENERIC_PASSWD_METHOD
  49. string
  50. default "des" if BR2_TARGET_GENERIC_PASSWD_DES
  51. default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
  52. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  53. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  54. choice
  55. prompt "/dev management"
  56. default BR2_ROOTFS_DEVICE_CREATION_STATIC
  57. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  58. bool "Static using device table"
  59. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  60. bool "Dynamic using devtmpfs only"
  61. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  62. bool "Dynamic using mdev"
  63. select BR2_PACKAGE_BUSYBOX
  64. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
  65. bool "Dynamic using udev"
  66. depends on BR2_LARGEFILE # udev
  67. depends on BR2_USE_WCHAR # udev
  68. select BR2_PACKAGE_UDEV
  69. comment "udev requires a toolchain with LARGEFILE + WCHAR support"
  70. depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
  71. endchoice
  72. choice
  73. prompt "Init system"
  74. default BR2_INIT_BUSYBOX
  75. config BR2_INIT_BUSYBOX
  76. bool "Busybox"
  77. select BR2_PACKAGE_BUSYBOX
  78. config BR2_INIT_SYSV
  79. bool "systemV"
  80. select BR2_PACKAGE_SYSVINIT
  81. config BR2_INIT_SYSTEMD
  82. bool "systemd"
  83. depends on BR2_LARGEFILE
  84. depends on BR2_USE_WCHAR
  85. depends on BR2_INET_IPV6
  86. depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
  87. depends on BR2_TOOLCHAIN_HAS_THREADS
  88. depends on BR2_USE_MMU
  89. select BR2_PACKAGE_DBUS
  90. select BR2_PACKAGE_SYSTEMD
  91. comment 'systemd requires largefile, wchar, IPv6, threads and udev support'
  92. depends on !(BR2_LARGEFILE && BR2_USE_WCHAR && \
  93. BR2_INET_IPV6 && BR2_TOOLCHAIN_HAS_THREADS && \
  94. BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV)
  95. config BR2_INIT_NONE
  96. bool "None"
  97. endchoice
  98. config BR2_ROOTFS_DEVICE_TABLE
  99. string "Path to the permission tables"
  100. default "system/device_table.txt"
  101. help
  102. Specify a space-separated list of permission table locations,
  103. that will be passed to the makedevs utility to assign
  104. correct owners and permissions on various files in the
  105. target filesystem.
  106. See package/makedevs/README for details on the usage and
  107. syntax of these files.
  108. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  109. string "Path to the device tables"
  110. default "system/device_table_dev.txt"
  111. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  112. help
  113. Specify a space-separated list of device table locations,
  114. that will be passed to the makedevs utility to create all
  115. the special device files under /dev.
  116. See package/makedevs/README for details on the usage and
  117. syntax of these files.
  118. choice
  119. prompt "Root FS skeleton"
  120. config BR2_ROOTFS_SKELETON_DEFAULT
  121. bool "default target skeleton"
  122. help
  123. Use default target skeleton
  124. config BR2_ROOTFS_SKELETON_CUSTOM
  125. bool "custom target skeleton"
  126. help
  127. Use custom target skeleton.
  128. endchoice
  129. if BR2_ROOTFS_SKELETON_CUSTOM
  130. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  131. string "custom target skeleton path"
  132. default "system/skeleton"
  133. help
  134. Path custom target skeleton.
  135. endif
  136. if BR2_ROOTFS_SKELETON_DEFAULT
  137. config BR2_TARGET_GENERIC_ROOT_PASSWD
  138. string "Root password"
  139. default ""
  140. help
  141. Set the initial root password (in clear). It will be md5-encrypted.
  142. If set to empty (the default), then no root password will be set,
  143. and root will need no password to log in.
  144. WARNING! WARNING!
  145. Although pretty strong, MD5 is now an old hash function, and
  146. suffers from some weaknesses, which makes it susceptible to attacks.
  147. It is showing its age, so this root password should not be trusted
  148. to properly secure any product that can be shipped to the wide,
  149. hostile world.
  150. WARNING! WARNING!
  151. The password appears in clear in the .config file, and may appear
  152. in the build log! Avoid using a valuable password if either the
  153. .config file or the build log may be distributed!
  154. config BR2_TARGET_GENERIC_GETTY_PORT
  155. string "Port to run a getty (login prompt) on"
  156. default "ttyS0"
  157. help
  158. Specify a port to run a getty (login prompt) on.
  159. Set to the empty string to not run a getty.
  160. choice
  161. prompt "Baudrate to use"
  162. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  163. help
  164. Select a baudrate to use.
  165. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  166. bool "keep kernel default"
  167. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  168. bool "9600"
  169. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  170. bool "19200"
  171. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  172. bool "38400"
  173. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  174. bool "57600"
  175. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  176. bool "115200"
  177. endchoice
  178. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  179. string
  180. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  181. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  182. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  183. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  184. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  185. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  186. config BR2_TARGET_GENERIC_GETTY_TERM
  187. string "Value to assign the TERM environment variable"
  188. default "vt100"
  189. help
  190. Specify a TERM type.
  191. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  192. bool "remount root filesystem read-write during boot"
  193. default y
  194. help
  195. The root filesystem is typically mounted read-only at boot.
  196. By default, buildroot remounts it in read-write mode early during the
  197. boot process.
  198. Say no here if you would rather like your root filesystem to remain
  199. read-only.
  200. If unsure, say Y.
  201. endif # BR2_ROOTFS_SKELETON_DEFAULT
  202. config BR2_ROOTFS_OVERLAY
  203. string "Root filesystem overlay directories"
  204. default ""
  205. help
  206. Specify a list of directories that are copied over the target
  207. root filesystem after the build has finished and before it is
  208. packed into the selected filesystem images.
  209. They are copied as-is into the rootfs, excluding files ending with
  210. ~ and .git, .svn and .hg directories.
  211. config BR2_ROOTFS_POST_BUILD_SCRIPT
  212. string "Custom scripts to run before creating filesystem images"
  213. default ""
  214. help
  215. Specify a space-separated list of scripts to be run after the build
  216. has finished and before Buildroot starts packing the files into
  217. selected filesystem images.
  218. This gives users the oportunity to do board-specific cleanups,
  219. add-ons and the like, so the generated files can be used directly
  220. without further processing.
  221. These scripts are called with the target directory name as first
  222. argument. Make sure the exit code of those scripts are 0, otherwise
  223. make will stop after calling them.
  224. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  225. string "Custom scripts to run after creating filesystem images"
  226. default ""
  227. help
  228. Specify a space-separated list of scripts to be run after
  229. the build has finished and after Buildroot has packed the
  230. files into selected filesystem images.
  231. This can for example be used to call a tool building a
  232. firmware image from different images generated by Buildroot,
  233. or automatically extract the tarball root filesystem image
  234. into some location exported by NFS, or any other custom
  235. action.
  236. These scripts are called with the images directory name as
  237. first argument. The script is executed from the main Buildroot
  238. source directory as the current directory.
  239. config BR2_ROOTFS_POST_SCRIPT_ARGS
  240. string "Extra post-{build,image} arguments"
  241. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  242. help
  243. Pass these aditional arguments to each post-build or post-image
  244. scripts.
  245. Note that all the post-build and post-image scripts will be passed
  246. the same set of arguments, you can not pass different arguments to
  247. each script.
  248. Note also, as stated in their respective help text, that the first
  249. argument to each post-build or post-image script is the target
  250. directory / images directory. The arguments in this option will be
  251. passed *after* those.
  252. endmenu