Config.in 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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_DYNAMIC_DEVTMPFS
  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. depends on !BR2_PREFER_STATIC_LIB # udev -> kmod
  69. select BR2_PACKAGE_UDEV
  70. comment "udev requires a toolchain with LARGEFILE + WCHAR support"
  71. depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
  72. comment "udev doesn't work with 'prefer static libraries'"
  73. depends on BR2_PREFER_STATIC_LIB
  74. endchoice
  75. choice
  76. prompt "Init system"
  77. default BR2_INIT_BUSYBOX
  78. config BR2_INIT_BUSYBOX
  79. bool "Busybox"
  80. select BR2_PACKAGE_BUSYBOX
  81. config BR2_INIT_SYSV
  82. bool "systemV"
  83. select BR2_PACKAGE_SYSVINIT
  84. config BR2_INIT_SYSTEMD
  85. bool "systemd"
  86. depends on BR2_LARGEFILE
  87. depends on BR2_USE_WCHAR
  88. depends on BR2_INET_IPV6
  89. depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
  90. depends on BR2_TOOLCHAIN_HAS_THREADS
  91. depends on BR2_USE_MMU
  92. select BR2_PACKAGE_DBUS
  93. select BR2_PACKAGE_SYSTEMD
  94. comment 'systemd requires largefile, wchar, IPv6, threads and udev support'
  95. depends on !(BR2_LARGEFILE && BR2_USE_WCHAR && \
  96. BR2_INET_IPV6 && BR2_TOOLCHAIN_HAS_THREADS && \
  97. BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV)
  98. config BR2_INIT_NONE
  99. bool "None"
  100. endchoice
  101. config BR2_ROOTFS_DEVICE_TABLE
  102. string "Path to the permission tables"
  103. default "system/device_table.txt"
  104. help
  105. Specify a space-separated list of permission table locations,
  106. that will be passed to the makedevs utility to assign
  107. correct owners and permissions on various files in the
  108. target filesystem.
  109. See package/makedevs/README for details on the usage and
  110. syntax of these files.
  111. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  112. string "Path to the device tables"
  113. default "system/device_table_dev.txt"
  114. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  115. help
  116. Specify a space-separated list of device table locations,
  117. that will be passed to the makedevs utility to create all
  118. the special device files under /dev.
  119. See package/makedevs/README for details on the usage and
  120. syntax of these files.
  121. choice
  122. prompt "Root FS skeleton"
  123. config BR2_ROOTFS_SKELETON_DEFAULT
  124. bool "default target skeleton"
  125. help
  126. Use default target skeleton
  127. config BR2_ROOTFS_SKELETON_CUSTOM
  128. bool "custom target skeleton"
  129. help
  130. Use custom target skeleton.
  131. endchoice
  132. if BR2_ROOTFS_SKELETON_CUSTOM
  133. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  134. string "custom target skeleton path"
  135. default "system/skeleton"
  136. help
  137. Path custom target skeleton.
  138. endif
  139. if BR2_ROOTFS_SKELETON_DEFAULT
  140. config BR2_TARGET_GENERIC_ROOT_PASSWD
  141. string "Root password"
  142. default ""
  143. help
  144. Set the initial root password (in clear). It will be md5-encrypted.
  145. If set to empty (the default), then no root password will be set,
  146. and root will need no password to log in.
  147. WARNING! WARNING!
  148. Although pretty strong, MD5 is now an old hash function, and
  149. suffers from some weaknesses, which makes it susceptible to attacks.
  150. It is showing its age, so this root password should not be trusted
  151. to properly secure any product that can be shipped to the wide,
  152. hostile world.
  153. WARNING! WARNING!
  154. The password appears in clear in the .config file, and may appear
  155. in the build log! Avoid using a valuable password if either the
  156. .config file or the build log may be distributed!
  157. config BR2_TARGET_GENERIC_GETTY
  158. bool "Run a getty (login prompt) after boot"
  159. default y
  160. if BR2_TARGET_GENERIC_GETTY
  161. menu "getty options"
  162. config BR2_TARGET_GENERIC_GETTY_PORT
  163. string "TTY port"
  164. default "ttyS0"
  165. help
  166. Specify a port to run a getty on.
  167. choice
  168. prompt "Baudrate"
  169. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  170. help
  171. Select a baudrate to use.
  172. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  173. bool "keep kernel default"
  174. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  175. bool "9600"
  176. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  177. bool "19200"
  178. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  179. bool "38400"
  180. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  181. bool "57600"
  182. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  183. bool "115200"
  184. endchoice
  185. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  186. string
  187. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  188. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  189. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  190. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  191. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  192. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  193. config BR2_TARGET_GENERIC_GETTY_TERM
  194. string "TERM environment variable"
  195. default "vt100"
  196. help
  197. Specify a TERM type.
  198. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  199. string "other options to pass to getty"
  200. default ""
  201. help
  202. Any other flags you want to pass to getty,
  203. Refer to getty --help for details.
  204. endmenu
  205. endif
  206. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  207. bool "remount root filesystem read-write during boot"
  208. default y
  209. help
  210. The root filesystem is typically mounted read-only at boot.
  211. By default, buildroot remounts it in read-write mode early during the
  212. boot process.
  213. Say no here if you would rather like your root filesystem to remain
  214. read-only.
  215. If unsure, say Y.
  216. endif # BR2_ROOTFS_SKELETON_DEFAULT
  217. config BR2_ROOTFS_OVERLAY
  218. string "Root filesystem overlay directories"
  219. default ""
  220. help
  221. Specify a list of directories that are copied over the target
  222. root filesystem after the build has finished and before it is
  223. packed into the selected filesystem images.
  224. They are copied as-is into the rootfs, excluding files ending with
  225. ~ and .git, .svn and .hg directories.
  226. config BR2_ROOTFS_POST_BUILD_SCRIPT
  227. string "Custom scripts to run before creating filesystem images"
  228. default ""
  229. help
  230. Specify a space-separated list of scripts to be run after the build
  231. has finished and before Buildroot starts packing the files into
  232. selected filesystem images.
  233. This gives users the oportunity to do board-specific cleanups,
  234. add-ons and the like, so the generated files can be used directly
  235. without further processing.
  236. These scripts are called with the target directory name as first
  237. argument. Make sure the exit code of those scripts are 0, otherwise
  238. make will stop after calling them.
  239. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  240. string "Custom scripts to run after creating filesystem images"
  241. default ""
  242. help
  243. Specify a space-separated list of scripts to be run after
  244. the build has finished and after Buildroot has packed the
  245. files into selected filesystem images.
  246. This can for example be used to call a tool building a
  247. firmware image from different images generated by Buildroot,
  248. or automatically extract the tarball root filesystem image
  249. into some location exported by NFS, or any other custom
  250. action.
  251. These scripts are called with the images directory name as
  252. first argument. The script is executed from the main Buildroot
  253. source directory as the current directory.
  254. config BR2_ROOTFS_POST_SCRIPT_ARGS
  255. string "Extra post-{build,image} arguments"
  256. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  257. help
  258. Pass these aditional arguments to each post-build or post-image
  259. scripts.
  260. Note that all the post-build and post-image scripts will be passed
  261. the same set of arguments, you can not pass different arguments to
  262. each script.
  263. Note also, as stated in their respective help text, that the first
  264. argument to each post-build or post-image script is the target
  265. directory / images directory. The arguments in this option will be
  266. passed *after* those.
  267. endmenu