Config.in 9.8 KB

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