Config.in 9.7 KB

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