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 select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
110 select BR2_PACKAGE_INITSCRIPTS
111 select BR2_PACKAGE_SYSVINIT
113 # In Buildroot, we decided not to support a split-usr when systemd is
114 # used as an init system. This is a design decision, not a systemd
115 # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
116 # with BR2_PACKAGE_SYSTEMD.
117 config BR2_INIT_SYSTEMD
119 depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
120 depends on BR2_TOOLCHAIN_USES_GLIBC
121 depends on BR2_USE_WCHAR
122 depends on BR2_TOOLCHAIN_HAS_THREADS
123 depends on BR2_TOOLCHAIN_HAS_SSP
124 depends on BR2_USE_MMU
125 depends on !BR2_STATIC_LIBS
126 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
127 select BR2_ROOTFS_MERGED_USR
128 select BR2_PACKAGE_SYSTEMD
129 select BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
131 comment "systemd needs a glibc toolchain, headers >= 3.10"
132 depends on !(BR2_TOOLCHAIN_USES_GLIBC \
133 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
138 Buildroot will not install any init system. You will
139 have to provide your own, either with a new package
140 or with a rootfs-overlay.
145 prompt "/dev management" if !BR2_INIT_SYSTEMD
146 default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
148 config BR2_ROOTFS_DEVICE_CREATION_STATIC
149 bool "Static using device table"
151 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
152 bool "Dynamic using devtmpfs only"
154 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
155 bool "Dynamic using devtmpfs + mdev"
156 select BR2_PACKAGE_BUSYBOX
158 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
159 bool "Dynamic using devtmpfs + eudev"
160 depends on BR2_USE_WCHAR
161 depends on !BR2_STATIC_LIBS
162 depends on BR2_USE_MMU # eudev
163 select BR2_PACKAGE_EUDEV
165 comment "eudev needs a toolchain w/ wchar, dynamic library"
166 depends on BR2_USE_MMU
167 depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
171 comment "/dev management using udev (from systemd)"
172 depends on BR2_INIT_SYSTEMD
174 config BR2_ROOTFS_DEVICE_TABLE
175 string "Path to the permission tables"
176 default "system/device_table.txt"
178 Specify a space-separated list of permission table locations,
179 that will be passed to the makedevs utility to assign
180 correct owners and permissions on various files in the
183 See package/makedevs/README for details on the usage and
184 syntax of these files.
186 config BR2_ROOTFS_STATIC_DEVICE_TABLE
187 string "Path to the device tables"
188 default "system/device_table_dev.txt"
189 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
191 Specify a space-separated list of device table locations,
192 that will be passed to the makedevs utility to create all
193 the special device files under /dev.
195 See package/makedevs/README for details on the usage and
196 syntax of these files.
198 config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
199 bool "support extended attributes in device tables"
201 Support extended attributes handling in device tables
203 if BR2_ROOTFS_SKELETON_DEFAULT
205 config BR2_ROOTFS_MERGED_USR
206 bool "Use symlinks to /usr for /bin, /sbin and /lib"
208 If you say 'n' here, then /bin, /sbin and /lib and their
209 counterparts in /usr will be separate directories. This
210 is the historical UNIX way. In this case, /usr can be a
211 filesystem on a partition separate from / .
213 If you say 'y' here, then /bin, /sbin and /lib will be symlinks
214 to their counterparts in /usr. In this case, /usr can not be a
217 config BR2_TARGET_ENABLE_ROOT_LOGIN
218 bool "Enable root login with password"
221 Allow root to log in with a password.
223 If not enabled, root will not be able to log in with a password.
224 However, if you have an ssh server and you add an ssh key, you
225 can still allow root to log in. Alternatively, you can use sudo
228 config BR2_TARGET_GENERIC_ROOT_PASSWD
229 string "Root password"
231 depends on BR2_TARGET_ENABLE_ROOT_LOGIN
233 Set the initial root password.
235 If set to empty (the default), then no root password will be set,
236 and root will need no password to log in.
238 If the password starts with any of $1$, $5$ or $6$, it is considered
239 to be already crypt-encoded with respectively md5, sha256 or sha512.
240 Any other value is taken to be a clear-text value, and is crypt-encoded
241 as per the "Passwords encoding" scheme, above.
243 Note: "$" signs in the hashed password must be doubled. For example,
244 if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
245 then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
246 (this is necessary otherwise make would attempt to interpret the $
247 as a variable expansion).
250 The password appears as-is in the .config file, and may appear
251 in the build log! Avoid using a valuable password if either the
252 .config file or the build log may be distributed, or at the
253 very least use a strong cryptographic hash for your password!
257 default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
259 Select which shell will provide /bin/sh.
261 # busybox has shells that work on noMMU
262 config BR2_SYSTEM_BIN_SH_BUSYBOX
263 bool "busybox' default shell"
264 depends on BR2_PACKAGE_BUSYBOX
266 config BR2_SYSTEM_BIN_SH_BASH
268 depends on BR2_USE_MMU # bash
269 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
270 select BR2_PACKAGE_BASH
272 config BR2_SYSTEM_BIN_SH_DASH
274 depends on BR2_USE_MMU # dash
275 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
276 select BR2_PACKAGE_DASH
278 config BR2_SYSTEM_BIN_SH_ZSH
280 depends on BR2_USE_MMU # zsh
281 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
282 select BR2_PACKAGE_ZSH
284 comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
285 depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
287 config BR2_SYSTEM_BIN_SH_NONE
292 config BR2_SYSTEM_BIN_SH
294 default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
295 default "bash" if BR2_SYSTEM_BIN_SH_BASH
296 default "dash" if BR2_SYSTEM_BIN_SH_DASH
297 default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
299 menuconfig BR2_TARGET_GENERIC_GETTY
300 bool "Run a getty (login prompt) after boot"
303 if BR2_TARGET_GENERIC_GETTY
304 config BR2_TARGET_GENERIC_GETTY_PORT
308 Specify a port to run a getty on.
312 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
314 Select a baudrate to use.
316 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
317 bool "keep kernel default"
318 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
320 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
322 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
324 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
326 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
330 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
332 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
333 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
334 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
335 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
336 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
337 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
339 config BR2_TARGET_GENERIC_GETTY_TERM
340 string "TERM environment variable"
345 config BR2_TARGET_GENERIC_GETTY_OPTIONS
346 string "other options to pass to getty"
349 Any other flags you want to pass to getty,
350 Refer to getty --help for details.
353 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
354 bool "remount root filesystem read-write during boot"
357 The root filesystem is typically mounted read-only at boot.
358 By default, buildroot remounts it in read-write mode early during the
360 Say no here if you would rather like your root filesystem to remain
364 config BR2_SYSTEM_DHCP
365 string "Network interface to configure through DHCP"
367 depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
369 Enter here the name of the network interface (E.G. eth0) to
370 automatically configure through DHCP at bootup.
372 If left empty, no automatic DHCP requests will take place.
374 For more complicated network setups use an overlay to overwrite
375 /etc/network/interfaces or add a networkd configuration file.
377 comment "automatic network configuration via DHCP is not compatible with networkd"
378 depends on BR2_PACKAGE_SYSTEMD_NETWORKD
380 comment "automatic network configuration via DHCP needs ifupdown or busybox"
381 depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
383 endif # BR2_ROOTFS_SKELETON_DEFAULT
385 config BR2_ENABLE_LOCALE_PURGE
386 bool "Purge unwanted locales"
389 Explicitly specify what locales to install on target. If N
390 then all locales supported by packages are installed.
392 config BR2_ENABLE_LOCALE_WHITELIST
393 string "Locales to keep"
395 depends on BR2_ENABLE_LOCALE_PURGE
397 Whitespace seperated list of locales to allow on target.
398 Locales not listed here will be removed from the target.
399 See 'locale -a' on your host for a list of locales available
400 on your build host, or have a look in /usr/share/locale in
401 the target file system for available locales.
403 Notice that listing a locale here doesn't guarantee that it
404 will be available on the target - That purely depends on the
405 support for that locale in the selected packages.
407 config BR2_GENERATE_LOCALE
408 string "Generate locale data"
411 (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
412 BR2_TOOLCHAIN_USES_GLIBC
414 Generate support for a list of locales. Locales can be
415 specified with or without encoding, when no encoding is
416 specified, UTF-8 is assumed. Examples of locales: en_US,
419 config BR2_TARGET_TZ_INFO
420 bool "Install timezone info"
421 # No timezone for musl; only for uClibc or glibc.
422 depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
423 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
424 select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
426 Say 'y' here to install timezone info.
428 if BR2_TARGET_TZ_INFO
430 config BR2_TARGET_TZ_ZONELIST
431 string "timezone list"
434 Space-separated list of time zones to compile.
436 The value "default" includes all commonly used time zones. Note
437 that this set consumes around 5.5M for glibc and 2.1M for uClibc.
439 The full list is the list of files in the time zone database source,
440 not including the build and .tab files.
442 config BR2_TARGET_LOCALTIME
443 string "default local time"
446 The time zone to install as the default local time, expressed as a
447 tzdata location, such as:
454 If empty, no local time will be set, and the dates will be
457 endif # BR2_TARGET_TZ_INFO
459 config BR2_ROOTFS_USERS_TABLES
460 string "Path to the users tables"
462 Specify a space-separated list of users table locations,
463 that will be passed to the mkusers utility to create
464 users on the system, with home directory, password, etc.
466 See manual for details on the usage and syntax of these files.
468 config BR2_ROOTFS_OVERLAY
469 string "Root filesystem overlay directories"
472 Specify a list of directories that are copied over the target
473 root filesystem after the build has finished and before it is
474 packed into the selected filesystem images.
476 They are copied as-is into the rootfs, excluding files ending with
477 ~ and .git, .svn and .hg directories.
479 config BR2_ROOTFS_POST_BUILD_SCRIPT
480 string "Custom scripts to run before creating filesystem images"
483 Specify a space-separated list of scripts to be run after the build
484 has finished and before Buildroot starts packing the files into
485 selected filesystem images.
487 This gives users the opportunity to do board-specific cleanups,
488 add-ons and the like, so the generated files can be used directly
489 without further processing.
491 These scripts are called with the target directory name as first
492 argument. Make sure the exit code of those scripts are 0, otherwise
493 make will stop after calling them.
495 config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
496 string "Custom scripts to run inside the fakeroot environment"
499 Specify a space-separated list of scripts to be run at the end
500 of the fakeroot script right before the image(s) are actually
503 This gives users the opportunity to do customisations of the
504 content of the rootfs, which would otherwise require root
507 These scripts are called with the target directory name as
508 first argument. The build will fail on the first scripts that
509 exits with a non-zero exit code.
511 Note that Buildroot already provides mechanisms to customise
512 the content of the rootfs:
514 - BR2_ROOTFS_STATIC_DEVICE_TABLE
515 to create arbitrary entries statically in /dev
517 - BR2_ROOTFS_DEVICE_TABLE
518 to set arbitrary permissions as well as extended attributes
519 (such as capabilities) on files and directories,
521 - BR2_ROOTFS_USERS_TABLES:
522 to create arbitrary users and their home directories
524 It is highly recommended to use those mechanisms if possible,
525 rather than using custom fakeroot scripts.
527 config BR2_ROOTFS_POST_IMAGE_SCRIPT
528 string "Custom scripts to run after creating filesystem images"
531 Specify a space-separated list of scripts to be run after
532 the build has finished and after Buildroot has packed the
533 files into selected filesystem images.
535 This can for example be used to call a tool building a
536 firmware image from different images generated by Buildroot,
537 or automatically extract the tarball root filesystem image
538 into some location exported by NFS, or any other custom
541 These scripts are called with the images directory name as
542 first argument. The script is executed from the main Buildroot
543 source directory as the current directory.
545 config BR2_ROOTFS_POST_SCRIPT_ARGS
546 string "Extra arguments passed to custom scripts"
547 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
548 || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
549 || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
551 Pass these additional arguments to each post-build or post-image
554 Note that all the post-build and post-image scripts will be passed
555 the same set of arguments, you can not pass different arguments to
558 Note also, as stated in their respective help text, that the first
559 argument to each post-build or post-image script is the target
560 directory / images directory. The arguments in this option will be
561 passed *after* those.