Config.in 9.9 KB

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