Config.in 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. menu "System configuration"
  2. choice
  3. prompt "Root FS skeleton"
  4. config BR2_ROOTFS_SKELETON_DEFAULT
  5. bool "default target skeleton"
  6. help
  7. Use default target skeleton
  8. config BR2_ROOTFS_SKELETON_CUSTOM
  9. bool "custom target skeleton"
  10. help
  11. Use custom target skeleton.
  12. endchoice
  13. if BR2_ROOTFS_SKELETON_CUSTOM
  14. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  15. string "custom target skeleton path"
  16. help
  17. Path to custom target skeleton.
  18. # dummy config so merged /usr workarounds can also be activated for
  19. # custom rootfs skeleton
  20. config BR2_ROOTFS_MERGED_USR
  21. endif
  22. if BR2_ROOTFS_SKELETON_DEFAULT
  23. config BR2_TARGET_GENERIC_HOSTNAME
  24. string "System hostname"
  25. default "buildroot"
  26. help
  27. Select system hostname to be stored in /etc/hostname.
  28. Leave empty to not create /etc/hostname, or to keep the
  29. one from a custom skeleton.
  30. config BR2_TARGET_GENERIC_ISSUE
  31. string "System banner"
  32. default "Welcome to Buildroot"
  33. help
  34. Select system banner (/etc/issue) to be displayed at login.
  35. Leave empty to not create /etc/issue, or to keep the
  36. one from a custom skeleton.
  37. endif
  38. choice
  39. bool "Passwords encoding"
  40. default BR2_TARGET_GENERIC_PASSWD_MD5
  41. help
  42. Choose the password encoding scheme to use when Buildroot
  43. needs to encode a password (eg. the root password, below).
  44. Note: this is used at build-time, and *not* at runtime.
  45. config BR2_TARGET_GENERIC_PASSWD_MD5
  46. bool "md5"
  47. help
  48. Use MD5 to encode passwords.
  49. The default. Wildly available, and pretty good.
  50. Although pretty strong, MD5 is now an old hash function, and
  51. suffers from some weaknesses, which makes it susceptible to
  52. brute-force attacks.
  53. config BR2_TARGET_GENERIC_PASSWD_SHA256
  54. bool "sha-256"
  55. help
  56. Use SHA256 to encode passwords.
  57. Very strong, but not ubiquitous, although available in glibc
  58. for some time now. Choose only if you are sure your C library
  59. understands SHA256 passwords.
  60. config BR2_TARGET_GENERIC_PASSWD_SHA512
  61. bool "sha-512"
  62. help
  63. Use SHA512 to encode passwords.
  64. Extremely strong, but not ubiquitous, although available in glibc
  65. for some time now. Choose only if you are sure your C library
  66. understands SHA512 passwords.
  67. endchoice # Passwd encoding
  68. config BR2_TARGET_GENERIC_PASSWD_METHOD
  69. string
  70. default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
  71. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  72. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  73. choice
  74. prompt "Init system"
  75. default BR2_INIT_BUSYBOX
  76. config BR2_INIT_BUSYBOX
  77. bool "BusyBox"
  78. select BR2_PACKAGE_BUSYBOX
  79. select BR2_PACKAGE_INITSCRIPTS
  80. config BR2_INIT_SYSV
  81. bool "systemV"
  82. depends on BR2_USE_MMU # sysvinit
  83. select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
  84. select BR2_PACKAGE_INITSCRIPTS
  85. select BR2_PACKAGE_SYSVINIT
  86. # In Buildroot, we decided not to support a split-usr when systemd is
  87. # used as an init system. This is a design decision, not a systemd
  88. # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
  89. # with BR2_PACKAGE_SYSTEMD.
  90. config BR2_INIT_SYSTEMD
  91. bool "systemd"
  92. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  93. depends on BR2_TOOLCHAIN_USES_GLIBC
  94. depends on BR2_USE_WCHAR
  95. depends on BR2_TOOLCHAIN_HAS_THREADS
  96. depends on BR2_TOOLCHAIN_HAS_SSP
  97. depends on BR2_USE_MMU
  98. depends on !BR2_STATIC_LIBS
  99. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  100. select BR2_ROOTFS_MERGED_USR
  101. select BR2_PACKAGE_SYSTEMD
  102. select BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW if BR2_ROOTFS_SKELETON_DEFAULT
  103. comment "systemd needs a glibc toolchain, headers >= 3.10"
  104. depends on !(BR2_TOOLCHAIN_USES_GLIBC \
  105. && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
  106. config BR2_INIT_NONE
  107. bool "None"
  108. help
  109. Buildroot will not install any init system. You will
  110. have to provide your own, either with a new package
  111. or with a rootfs-overlay.
  112. endchoice
  113. choice
  114. prompt "/dev management" if !BR2_INIT_SYSTEMD
  115. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  116. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  117. bool "Static using device table"
  118. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  119. bool "Dynamic using devtmpfs only"
  120. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  121. bool "Dynamic using devtmpfs + mdev"
  122. select BR2_PACKAGE_BUSYBOX
  123. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  124. bool "Dynamic using devtmpfs + eudev"
  125. depends on BR2_USE_WCHAR # eudev
  126. depends on !BR2_STATIC_LIBS
  127. depends on BR2_USE_MMU # eudev
  128. select BR2_PACKAGE_EUDEV
  129. comment "eudev needs a toolchain w/ wchar, dynamic library"
  130. depends on BR2_USE_MMU
  131. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  132. endchoice
  133. comment "/dev management using udev (from systemd)"
  134. depends on BR2_INIT_SYSTEMD
  135. config BR2_ROOTFS_DEVICE_TABLE
  136. string "Path to the permission tables"
  137. default "system/device_table.txt"
  138. help
  139. Specify a space-separated list of permission table locations,
  140. that will be passed to the makedevs utility to assign
  141. correct owners and permissions on various files in the
  142. target filesystem.
  143. See package/makedevs/README for details on the usage and
  144. syntax of these files.
  145. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  146. string "Path to the device tables"
  147. default "system/device_table_dev.txt"
  148. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  149. help
  150. Specify a space-separated list of device table locations,
  151. that will be passed to the makedevs utility to create all
  152. the special device files under /dev.
  153. See package/makedevs/README for details on the usage and
  154. syntax of these files.
  155. config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
  156. bool "support extended attributes in device tables"
  157. help
  158. Support extended attributes handling in device tables
  159. if BR2_ROOTFS_SKELETON_DEFAULT
  160. config BR2_ROOTFS_MERGED_USR
  161. bool "Use symlinks to /usr for /bin, /sbin and /lib"
  162. help
  163. If you say 'n' here, then /bin, /sbin and /lib and their
  164. counterparts in /usr will be separate directories. This
  165. is the historical UNIX way. In this case, /usr can be a
  166. filesystem on a partition separate from / .
  167. If you say 'y' here, then /bin, /sbin and /lib will be symlinks
  168. to their counterparts in /usr. In this case, /usr can not be a
  169. separate filesystem.
  170. config BR2_TARGET_ENABLE_ROOT_LOGIN
  171. bool "Enable root login with password"
  172. default y
  173. help
  174. Allow root to log in with a password.
  175. If not enabled, root will not be able to log in with a password.
  176. However, if you have an ssh server and you add an ssh key, you
  177. can still allow root to log in. Alternatively, you can use sudo
  178. to become root.
  179. config BR2_TARGET_GENERIC_ROOT_PASSWD
  180. string "Root password"
  181. default ""
  182. depends on BR2_TARGET_ENABLE_ROOT_LOGIN
  183. help
  184. Set the initial root password.
  185. If set to empty (the default), then no root password will be set,
  186. and root will need no password to log in.
  187. If the password starts with any of $1$, $5$ or $6$, it is considered
  188. to be already crypt-encoded with respectively md5, sha256 or sha512.
  189. Any other value is taken to be a clear-text value, and is crypt-encoded
  190. as per the "Passwords encoding" scheme, above.
  191. Note: "$" signs in the hashed password must be doubled. For example,
  192. if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
  193. then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
  194. (this is necessary otherwise make would attempt to interpret the $
  195. as a variable expansion).
  196. WARNING! WARNING!
  197. The password appears as-is in the .config file, and may appear
  198. in the build log! Avoid using a valuable password if either the
  199. .config file or the build log may be distributed, or at the
  200. very least use a strong cryptographic hash for your password!
  201. choice
  202. bool "/bin/sh"
  203. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  204. help
  205. Select which shell will provide /bin/sh.
  206. # busybox has shells that work on noMMU
  207. config BR2_SYSTEM_BIN_SH_BUSYBOX
  208. bool "busybox' default shell"
  209. depends on BR2_PACKAGE_BUSYBOX
  210. config BR2_SYSTEM_BIN_SH_BASH
  211. bool "bash"
  212. depends on BR2_USE_MMU # bash
  213. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  214. select BR2_PACKAGE_BASH
  215. config BR2_SYSTEM_BIN_SH_DASH
  216. bool "dash"
  217. depends on BR2_USE_MMU # dash
  218. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  219. select BR2_PACKAGE_DASH
  220. config BR2_SYSTEM_BIN_SH_MKSH
  221. bool "mksh"
  222. depends on BR2_USE_MMU # mksh
  223. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  224. select BR2_PACKAGE_MKSH
  225. config BR2_SYSTEM_BIN_SH_ZSH
  226. bool "zsh"
  227. depends on BR2_USE_MMU # zsh
  228. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  229. select BR2_PACKAGE_ZSH
  230. comment "bash, dash, mksh, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  231. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  232. config BR2_SYSTEM_BIN_SH_NONE
  233. bool "none"
  234. endchoice # /bin/sh
  235. config BR2_SYSTEM_BIN_SH
  236. string
  237. default "bash" if BR2_SYSTEM_BIN_SH_BASH
  238. default "dash" if BR2_SYSTEM_BIN_SH_DASH
  239. default "mksh" if BR2_SYSTEM_BIN_SH_MKSH
  240. default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
  241. menuconfig BR2_TARGET_GENERIC_GETTY
  242. bool "Run a getty (login prompt) after boot"
  243. default y
  244. if BR2_TARGET_GENERIC_GETTY
  245. config BR2_TARGET_GENERIC_GETTY_PORT
  246. string "TTY port"
  247. default "console"
  248. help
  249. Specify a port to run a getty on.
  250. choice
  251. prompt "Baudrate"
  252. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  253. help
  254. Select a baudrate to use.
  255. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  256. bool "keep kernel default"
  257. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  258. bool "9600"
  259. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  260. bool "19200"
  261. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  262. bool "38400"
  263. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  264. bool "57600"
  265. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  266. bool "115200"
  267. endchoice
  268. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  269. string
  270. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  271. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  272. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  273. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  274. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  275. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  276. config BR2_TARGET_GENERIC_GETTY_TERM
  277. string "TERM environment variable"
  278. default "vt100"
  279. # currently observed only by busybox and sysvinit
  280. depends on BR2_INIT_BUSYBOX || BR2_INIT_SYSV
  281. help
  282. Specify a TERM type.
  283. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  284. string "other options to pass to getty"
  285. default ""
  286. # currently observed only by busybox and sysvinit
  287. depends on BR2_INIT_BUSYBOX || BR2_INIT_SYSV
  288. help
  289. Any other flags you want to pass to getty,
  290. Refer to getty --help for details.
  291. endif
  292. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  293. bool "remount root filesystem read-write during boot"
  294. default y
  295. help
  296. The root filesystem is typically mounted read-only at boot.
  297. By default, buildroot remounts it in read-write mode early during the
  298. boot process.
  299. Say no here if you would rather like your root filesystem to remain
  300. read-only.
  301. If unsure, say Y.
  302. config BR2_SYSTEM_DHCP
  303. string "Network interface to configure through DHCP"
  304. default ""
  305. depends on BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || BR2_PACKAGE_SYSTEMD_NETWORKD
  306. help
  307. Enter here the name of the network interface (E.G. eth0) to
  308. automatically configure through DHCP at bootup.
  309. If left empty, no automatic DHCP requests will take place.
  310. For more complicated network setups use an overlay to overwrite
  311. /etc/network/interfaces or add a networkd configuration file.
  312. comment "automatic network configuration via DHCP needs ifupdown or busybox or networkd"
  313. depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || BR2_PACKAGE_SYSTEMD_NETWORKD)
  314. endif # BR2_ROOTFS_SKELETON_DEFAULT
  315. config BR2_ENABLE_LOCALE_PURGE
  316. bool "Purge unwanted locales"
  317. default y
  318. help
  319. Explicitly specify what locales to install on target. If N
  320. then all locales supported by packages are installed.
  321. config BR2_ENABLE_LOCALE_WHITELIST
  322. string "Locales to keep"
  323. default "C en_US"
  324. depends on BR2_ENABLE_LOCALE_PURGE
  325. help
  326. Whitespace seperated list of locales to allow on target.
  327. Locales not listed here will be removed from the target.
  328. See 'locale -a' on your host for a list of locales available
  329. on your build host, or have a look in /usr/share/locale in
  330. the target file system for available locales.
  331. Notice that listing a locale here doesn't guarantee that it
  332. will be available on the target - That purely depends on the
  333. support for that locale in the selected packages.
  334. config BR2_GENERATE_LOCALE
  335. string "Generate locale data"
  336. default ""
  337. depends on \
  338. (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
  339. BR2_TOOLCHAIN_USES_GLIBC
  340. help
  341. Generate support for a list of locales. Locales can be
  342. specified with or without encoding, when no encoding is
  343. specified, UTF-8 is assumed. Examples of locales: en_US,
  344. fr_FR.UTF-8.
  345. config BR2_TARGET_TZ_INFO
  346. bool "Install timezone info"
  347. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
  348. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL
  349. select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
  350. help
  351. Say 'y' here to install timezone info.
  352. if BR2_TARGET_TZ_INFO
  353. config BR2_TARGET_TZ_ZONELIST
  354. string "timezone list"
  355. default "default"
  356. help
  357. Space-separated list of time zones to compile.
  358. The value "default" includes all commonly used time zones. Note
  359. that this set consumes around 5.5M for glibc and 2.1M for uClibc.
  360. The full list is the list of files in the time zone database source,
  361. not including the build and .tab files.
  362. config BR2_TARGET_LOCALTIME
  363. string "default local time"
  364. default "Etc/UTC"
  365. help
  366. The time zone to install as the default local time, expressed as a
  367. tzdata location, such as:
  368. GMT
  369. Europe/Paris
  370. America/New_York
  371. Pacific/Wallis
  372. ...
  373. If empty, no local time will be set, and the dates will be
  374. expressed in UTC.
  375. endif # BR2_TARGET_TZ_INFO
  376. config BR2_ROOTFS_USERS_TABLES
  377. string "Path to the users tables"
  378. help
  379. Specify a space-separated list of users table locations,
  380. that will be passed to the mkusers utility to create
  381. users on the system, with home directory, password, etc.
  382. See manual for details on the usage and syntax of these files.
  383. config BR2_ROOTFS_OVERLAY
  384. string "Root filesystem overlay directories"
  385. default ""
  386. help
  387. Specify a list of directories that are copied over the target
  388. root filesystem after the build has finished and before it is
  389. packed into the selected filesystem images.
  390. They are copied as-is into the rootfs, excluding files ending with
  391. ~ and .git, .svn and .hg directories.
  392. config BR2_ROOTFS_POST_BUILD_SCRIPT
  393. string "Custom scripts to run before creating filesystem images"
  394. default ""
  395. help
  396. Specify a space-separated list of scripts to be run after the build
  397. has finished and before Buildroot starts packing the files into
  398. selected filesystem images.
  399. This gives users the opportunity to do board-specific cleanups,
  400. add-ons and the like, so the generated files can be used directly
  401. without further processing.
  402. These scripts are called with the target directory name as first
  403. argument. Make sure the exit code of those scripts are 0, otherwise
  404. make will stop after calling them.
  405. config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
  406. string "Custom scripts to run inside the fakeroot environment"
  407. default ""
  408. help
  409. Specify a space-separated list of scripts to be run at the end
  410. of the fakeroot script right before the image(s) are actually
  411. generated.
  412. This gives users the opportunity to do customisations of the
  413. content of the rootfs, which would otherwise require root
  414. rights.
  415. These scripts are called with the target directory name as
  416. first argument. The build will fail on the first scripts that
  417. exits with a non-zero exit code.
  418. Note that Buildroot already provides mechanisms to customise
  419. the content of the rootfs:
  420. - BR2_ROOTFS_STATIC_DEVICE_TABLE
  421. to create arbitrary entries statically in /dev
  422. - BR2_ROOTFS_DEVICE_TABLE
  423. to set arbitrary permissions as well as extended attributes
  424. (such as capabilities) on files and directories,
  425. - BR2_ROOTFS_USERS_TABLES:
  426. to create arbitrary users and their home directories
  427. It is highly recommended to use those mechanisms if possible,
  428. rather than using custom fakeroot scripts.
  429. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  430. string "Custom scripts to run after creating filesystem images"
  431. default ""
  432. help
  433. Specify a space-separated list of scripts to be run after
  434. the build has finished and after Buildroot has packed the
  435. files into selected filesystem images.
  436. This can for example be used to call a tool building a
  437. firmware image from different images generated by Buildroot,
  438. or automatically extract the tarball root filesystem image
  439. into some location exported by NFS, or any other custom
  440. action.
  441. These scripts are called with the images directory name as
  442. first argument. The script is executed from the main Buildroot
  443. source directory as the current directory.
  444. config BR2_ROOTFS_POST_SCRIPT_ARGS
  445. string "Extra arguments passed to custom scripts"
  446. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
  447. || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
  448. || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  449. help
  450. Pass these additional arguments to each post-build or post-image
  451. scripts.
  452. Note that all the post-build and post-image scripts will be passed
  453. the same set of arguments, you can not pass different arguments to
  454. each script.
  455. Note also, as stated in their respective help text, that the first
  456. argument to each post-build or post-image script is the target
  457. directory / images directory. The arguments in this option will be
  458. passed *after* those.
  459. endmenu