Config.in 18 KB

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