1 menu "System configuration"
4 prompt "Root FS skeleton"
6 config BR2_ROOTFS_SKELETON_DEFAULT
7 bool "default target skeleton"
9 Use default target skeleton
11 config BR2_ROOTFS_SKELETON_CUSTOM
12 bool "custom target skeleton"
14 Use custom target skeleton.
18 if BR2_ROOTFS_SKELETON_CUSTOM
20 config BR2_ROOTFS_SKELETON_CUSTOM_PATH
21 string "custom target skeleton path"
23 Path to custom target skeleton.
25 # dummy config so merged /usr workarounds can also be activated for
26 # custom rootfs skeleton
27 config BR2_ROOTFS_MERGED_USR
31 if BR2_ROOTFS_SKELETON_DEFAULT
33 config BR2_TARGET_GENERIC_HOSTNAME
34 string "System hostname"
37 Select system hostname to be stored in /etc/hostname.
39 Leave empty to not create /etc/hostname, or to keep the
40 one from a custom skeleton.
42 config BR2_TARGET_GENERIC_ISSUE
43 string "System banner"
44 default "Welcome to Buildroot"
46 Select system banner (/etc/issue) to be displayed at login.
48 Leave empty to not create /etc/issue, or to keep the
49 one from a custom skeleton.
54 bool "Passwords encoding"
55 default BR2_TARGET_GENERIC_PASSWD_MD5
57 Choose the password encoding scheme to use when Buildroot
58 needs to encode a password (eg. the root password, below).
60 Note: this is used at build-time, and *not* at runtime.
62 config BR2_TARGET_GENERIC_PASSWD_MD5
65 Use MD5 to encode passwords.
67 The default. Wildly available, and pretty good.
68 Although pretty strong, MD5 is now an old hash function, and
69 suffers from some weaknesses, which makes it susceptible to
72 config BR2_TARGET_GENERIC_PASSWD_SHA256
75 Use SHA256 to encode passwords.
77 Very strong, but not ubiquitous, although available in glibc
78 for some time now. Choose only if you are sure your C library
79 understands SHA256 passwords.
81 config BR2_TARGET_GENERIC_PASSWD_SHA512
84 Use SHA512 to encode passwords.
86 Extremely strong, but not ubiquitous, although available in glibc
87 for some time now. Choose only if you are sure your C library
88 understands SHA512 passwords.
90 endchoice # Passwd encoding
92 config BR2_TARGET_GENERIC_PASSWD_METHOD
94 default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
95 default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
96 default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
100 default BR2_INIT_BUSYBOX
102 config BR2_INIT_BUSYBOX
104 select BR2_PACKAGE_BUSYBOX
105 select BR2_PACKAGE_INITSCRIPTS
109 depends on BR2_USE_MMU # sysvinit
110 select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
111 select BR2_PACKAGE_INITSCRIPTS
112 select BR2_PACKAGE_SYSVINIT
114 # In Buildroot, we decided not to support a split-usr when systemd is
115 # used as an init system. This is a design decision, not a systemd
116 # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
117 # with BR2_PACKAGE_SYSTEMD.
118 config BR2_INIT_SYSTEMD
120 depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
121 depends on BR2_TOOLCHAIN_USES_GLIBC
122 depends on BR2_USE_WCHAR
123 depends on BR2_TOOLCHAIN_HAS_THREADS
124 depends on BR2_TOOLCHAIN_HAS_SSP
125 depends on BR2_USE_MMU
126 depends on !BR2_STATIC_LIBS
127 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
128 select BR2_ROOTFS_MERGED_USR
129 select BR2_PACKAGE_SYSTEMD
130 select BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW if BR2_ROOTFS_SKELETON_DEFAULT
132 comment "systemd needs a glibc toolchain, headers >= 3.10"
133 depends on !(BR2_TOOLCHAIN_USES_GLIBC \
134 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
139 Buildroot will not install any init system. You will
140 have to provide your own, either with a new package
141 or with a rootfs-overlay.
146 prompt "/dev management" if !BR2_INIT_SYSTEMD
147 default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
149 config BR2_ROOTFS_DEVICE_CREATION_STATIC
150 bool "Static using device table"
152 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
153 bool "Dynamic using devtmpfs only"
155 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
156 bool "Dynamic using devtmpfs + mdev"
157 select BR2_PACKAGE_BUSYBOX
159 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
160 bool "Dynamic using devtmpfs + eudev"
161 depends on BR2_USE_WCHAR
162 depends on !BR2_STATIC_LIBS
163 depends on BR2_USE_MMU # eudev
164 select BR2_PACKAGE_EUDEV
166 comment "eudev needs a toolchain w/ wchar, dynamic library"
167 depends on BR2_USE_MMU
168 depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
172 comment "/dev management using udev (from systemd)"
173 depends on BR2_INIT_SYSTEMD
175 config BR2_ROOTFS_DEVICE_TABLE
176 string "Path to the permission tables"
177 default "system/device_table.txt"
179 Specify a space-separated list of permission table locations,
180 that will be passed to the makedevs utility to assign
181 correct owners and permissions on various files in the
184 See package/makedevs/README for details on the usage and
185 syntax of these files.
187 config BR2_ROOTFS_STATIC_DEVICE_TABLE
188 string "Path to the device tables"
189 default "system/device_table_dev.txt"
190 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
192 Specify a space-separated list of device table locations,
193 that will be passed to the makedevs utility to create all
194 the special device files under /dev.
196 See package/makedevs/README for details on the usage and
197 syntax of these files.
199 config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
200 bool "support extended attributes in device tables"
202 Support extended attributes handling in device tables
204 if BR2_ROOTFS_SKELETON_DEFAULT
206 config BR2_ROOTFS_MERGED_USR
207 bool "Use symlinks to /usr for /bin, /sbin and /lib"
209 If you say 'n' here, then /bin, /sbin and /lib and their
210 counterparts in /usr will be separate directories. This
211 is the historical UNIX way. In this case, /usr can be a
212 filesystem on a partition separate from / .
214 If you say 'y' here, then /bin, /sbin and /lib will be symlinks
215 to their counterparts in /usr. In this case, /usr can not be a
218 config BR2_TARGET_ENABLE_ROOT_LOGIN
219 bool "Enable root login with password"
222 Allow root to log in with a password.
224 If not enabled, root will not be able to log in with a password.
225 However, if you have an ssh server and you add an ssh key, you
226 can still allow root to log in. Alternatively, you can use sudo
229 config BR2_TARGET_GENERIC_ROOT_PASSWD
230 string "Root password"
232 depends on BR2_TARGET_ENABLE_ROOT_LOGIN
234 Set the initial root password.
236 If set to empty (the default), then no root password will be set,
237 and root will need no password to log in.
239 If the password starts with any of $1$, $5$ or $6$, it is considered
240 to be already crypt-encoded with respectively md5, sha256 or sha512.
241 Any other value is taken to be a clear-text value, and is crypt-encoded
242 as per the "Passwords encoding" scheme, above.
244 Note: "$" signs in the hashed password must be doubled. For example,
245 if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
246 then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
247 (this is necessary otherwise make would attempt to interpret the $
248 as a variable expansion).
251 The password appears as-is in the .config file, and may appear
252 in the build log! Avoid using a valuable password if either the
253 .config file or the build log may be distributed, or at the
254 very least use a strong cryptographic hash for your password!
258 default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
260 Select which shell will provide /bin/sh.
262 # busybox has shells that work on noMMU
263 config BR2_SYSTEM_BIN_SH_BUSYBOX
264 bool "busybox' default shell"
265 depends on BR2_PACKAGE_BUSYBOX
267 config BR2_SYSTEM_BIN_SH_BASH
269 depends on BR2_USE_MMU # bash
270 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
271 select BR2_PACKAGE_BASH
273 config BR2_SYSTEM_BIN_SH_DASH
275 depends on BR2_USE_MMU # dash
276 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
277 select BR2_PACKAGE_DASH
279 config BR2_SYSTEM_BIN_SH_MKSH
281 depends on BR2_USE_MMU # mksh
282 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
283 select BR2_PACKAGE_MKSH
285 config BR2_SYSTEM_BIN_SH_ZSH
287 depends on BR2_USE_MMU # zsh
288 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
289 select BR2_PACKAGE_ZSH
291 comment "bash, dash, mksh, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
292 depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
294 config BR2_SYSTEM_BIN_SH_NONE
299 config BR2_SYSTEM_BIN_SH
301 default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
302 default "bash" if BR2_SYSTEM_BIN_SH_BASH
303 default "dash" if BR2_SYSTEM_BIN_SH_DASH
304 default "mksh" if BR2_SYSTEM_BIN_SH_MKSH
305 default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
307 menuconfig BR2_TARGET_GENERIC_GETTY
308 bool "Run a getty (login prompt) after boot"
311 if BR2_TARGET_GENERIC_GETTY
312 config BR2_TARGET_GENERIC_GETTY_PORT
316 Specify a port to run a getty on.
320 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
322 Select a baudrate to use.
324 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
325 bool "keep kernel default"
326 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
328 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
330 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
332 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
334 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
338 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
340 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
341 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
342 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
343 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
344 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
345 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
347 config BR2_TARGET_GENERIC_GETTY_TERM
348 string "TERM environment variable"
353 config BR2_TARGET_GENERIC_GETTY_OPTIONS
354 string "other options to pass to getty"
357 Any other flags you want to pass to getty,
358 Refer to getty --help for details.
361 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
362 bool "remount root filesystem read-write during boot"
365 The root filesystem is typically mounted read-only at boot.
366 By default, buildroot remounts it in read-write mode early during the
368 Say no here if you would rather like your root filesystem to remain
372 config BR2_SYSTEM_DHCP
373 string "Network interface to configure through DHCP"
375 depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
377 Enter here the name of the network interface (E.G. eth0) to
378 automatically configure through DHCP at bootup.
380 If left empty, no automatic DHCP requests will take place.
382 For more complicated network setups use an overlay to overwrite
383 /etc/network/interfaces or add a networkd configuration file.
385 comment "automatic network configuration via DHCP is not compatible with networkd"
386 depends on BR2_PACKAGE_SYSTEMD_NETWORKD
388 comment "automatic network configuration via DHCP needs ifupdown or busybox"
389 depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
391 endif # BR2_ROOTFS_SKELETON_DEFAULT
393 config BR2_ENABLE_LOCALE_PURGE
394 bool "Purge unwanted locales"
397 Explicitly specify what locales to install on target. If N
398 then all locales supported by packages are installed.
400 config BR2_ENABLE_LOCALE_WHITELIST
401 string "Locales to keep"
403 depends on BR2_ENABLE_LOCALE_PURGE
405 Whitespace seperated list of locales to allow on target.
406 Locales not listed here will be removed from the target.
407 See 'locale -a' on your host for a list of locales available
408 on your build host, or have a look in /usr/share/locale in
409 the target file system for available locales.
411 Notice that listing a locale here doesn't guarantee that it
412 will be available on the target - That purely depends on the
413 support for that locale in the selected packages.
415 config BR2_GENERATE_LOCALE
416 string "Generate locale data"
419 (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
420 BR2_TOOLCHAIN_USES_GLIBC
422 Generate support for a list of locales. Locales can be
423 specified with or without encoding, when no encoding is
424 specified, UTF-8 is assumed. Examples of locales: en_US,
427 config BR2_TARGET_TZ_INFO
428 bool "Install timezone info"
429 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
430 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL
431 select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
433 Say 'y' here to install timezone info.
435 if BR2_TARGET_TZ_INFO
437 config BR2_TARGET_TZ_ZONELIST
438 string "timezone list"
441 Space-separated list of time zones to compile.
443 The value "default" includes all commonly used time zones. Note
444 that this set consumes around 5.5M for glibc and 2.1M for uClibc.
446 The full list is the list of files in the time zone database source,
447 not including the build and .tab files.
449 config BR2_TARGET_LOCALTIME
450 string "default local time"
453 The time zone to install as the default local time, expressed as a
454 tzdata location, such as:
461 If empty, no local time will be set, and the dates will be
464 endif # BR2_TARGET_TZ_INFO
466 config BR2_ROOTFS_USERS_TABLES
467 string "Path to the users tables"
469 Specify a space-separated list of users table locations,
470 that will be passed to the mkusers utility to create
471 users on the system, with home directory, password, etc.
473 See manual for details on the usage and syntax of these files.
475 config BR2_ROOTFS_OVERLAY
476 string "Root filesystem overlay directories"
479 Specify a list of directories that are copied over the target
480 root filesystem after the build has finished and before it is
481 packed into the selected filesystem images.
483 They are copied as-is into the rootfs, excluding files ending with
484 ~ and .git, .svn and .hg directories.
486 config BR2_ROOTFS_POST_BUILD_SCRIPT
487 string "Custom scripts to run before creating filesystem images"
490 Specify a space-separated list of scripts to be run after the build
491 has finished and before Buildroot starts packing the files into
492 selected filesystem images.
494 This gives users the opportunity to do board-specific cleanups,
495 add-ons and the like, so the generated files can be used directly
496 without further processing.
498 These scripts are called with the target directory name as first
499 argument. Make sure the exit code of those scripts are 0, otherwise
500 make will stop after calling them.
502 config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
503 string "Custom scripts to run inside the fakeroot environment"
506 Specify a space-separated list of scripts to be run at the end
507 of the fakeroot script right before the image(s) are actually
510 This gives users the opportunity to do customisations of the
511 content of the rootfs, which would otherwise require root
514 These scripts are called with the target directory name as
515 first argument. The build will fail on the first scripts that
516 exits with a non-zero exit code.
518 Note that Buildroot already provides mechanisms to customise
519 the content of the rootfs:
521 - BR2_ROOTFS_STATIC_DEVICE_TABLE
522 to create arbitrary entries statically in /dev
524 - BR2_ROOTFS_DEVICE_TABLE
525 to set arbitrary permissions as well as extended attributes
526 (such as capabilities) on files and directories,
528 - BR2_ROOTFS_USERS_TABLES:
529 to create arbitrary users and their home directories
531 It is highly recommended to use those mechanisms if possible,
532 rather than using custom fakeroot scripts.
534 config BR2_ROOTFS_POST_IMAGE_SCRIPT
535 string "Custom scripts to run after creating filesystem images"
538 Specify a space-separated list of scripts to be run after
539 the build has finished and after Buildroot has packed the
540 files into selected filesystem images.
542 This can for example be used to call a tool building a
543 firmware image from different images generated by Buildroot,
544 or automatically extract the tarball root filesystem image
545 into some location exported by NFS, or any other custom
548 These scripts are called with the images directory name as
549 first argument. The script is executed from the main Buildroot
550 source directory as the current directory.
552 config BR2_ROOTFS_POST_SCRIPT_ARGS
553 string "Extra arguments passed to custom scripts"
554 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
555 || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
556 || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
558 Pass these additional arguments to each post-build or post-image
561 Note that all the post-build and post-image scripts will be passed
562 the same set of arguments, you can not pass different arguments to
565 Note also, as stated in their respective help text, that the first
566 argument to each post-build or post-image script is the target
567 directory / images directory. The arguments in this option will be
568 passed *after* those.