1 menu "System configuration"
3 config BR2_TARGET_GENERIC_HOSTNAME
4 string "System hostname"
7 Select system hostname to be stored in /etc/hostname.
9 Leave empty to not create /etc/hostname, or to keep the
10 one from a custom skeleton.
12 config BR2_TARGET_GENERIC_ISSUE
13 string "System banner"
14 default "Welcome to Buildroot"
16 Select system banner (/etc/issue) to be displayed at login.
18 Leave empty to not create /etc/issue, or to keep the
19 one from a custom skeleton.
22 bool "Passwords encoding"
23 default BR2_TARGET_GENERIC_PASSWD_MD5
25 Choose the password encoding scheme to use when Buildroot
26 needs to encode a password (eg. the root password, below).
28 Note: this is used at build-time, and *not* at runtime.
30 config BR2_TARGET_GENERIC_PASSWD_MD5
33 Use MD5 to encode passwords.
35 The default. Wildly available, and pretty good.
36 Although pretty strong, MD5 is now an old hash function, and
37 suffers from some weaknesses, which makes it susceptible to
40 config BR2_TARGET_GENERIC_PASSWD_SHA256
43 Use SHA256 to encode passwords.
45 Very strong, but not ubiquitous, although available in glibc
46 for some time now. Choose only if you are sure your C library
47 understands SHA256 passwords.
49 config BR2_TARGET_GENERIC_PASSWD_SHA512
52 Use SHA512 to encode passwords.
54 Extremely strong, but not ubiquitous, although available in glibc
55 for some time now. Choose only if you are sure your C library
56 understands SHA512 passwords.
58 endchoice # Passwd encoding
60 config BR2_TARGET_GENERIC_PASSWD_METHOD
62 default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
63 default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
64 default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
68 default BR2_INIT_BUSYBOX
70 config BR2_INIT_BUSYBOX
72 select BR2_PACKAGE_BUSYBOX
76 select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
77 select BR2_PACKAGE_SYSVINIT
79 config BR2_INIT_SYSTEMD
81 depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
82 depends on BR2_TOOLCHAIN_USES_GLIBC
83 depends on BR2_USE_WCHAR
84 depends on BR2_TOOLCHAIN_HAS_THREADS
85 depends on BR2_TOOLCHAIN_HAS_SSP
86 depends on BR2_USE_MMU
87 depends on !BR2_STATIC_LIBS
88 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
89 select BR2_PACKAGE_SYSTEMD
91 comment 'systemd needs an (e)glibc toolchain, headers >= 3.10'
92 depends on !(BR2_TOOLCHAIN_USES_GLIBC \
93 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
101 prompt "/dev management" if !BR2_INIT_SYSTEMD
102 default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
104 config BR2_ROOTFS_DEVICE_CREATION_STATIC
105 bool "Static using device table"
107 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
108 bool "Dynamic using devtmpfs only"
110 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
111 bool "Dynamic using mdev"
112 select BR2_PACKAGE_BUSYBOX
114 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
115 bool "Dynamic using eudev"
116 depends on BR2_USE_WCHAR
117 depends on !BR2_STATIC_LIBS
118 depends on BR2_USE_MMU # eudev
119 select BR2_PACKAGE_EUDEV
121 comment "eudev needs a toolchain w/ wchar, dynamic library"
122 depends on BR2_USE_MMU
123 depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
127 comment "/dev management using udev (from systemd)"
128 depends on BR2_INIT_SYSTEMD
130 config BR2_ROOTFS_DEVICE_TABLE
131 string "Path to the permission tables"
132 default "system/device_table.txt"
134 Specify a space-separated list of permission table locations,
135 that will be passed to the makedevs utility to assign
136 correct owners and permissions on various files in the
139 See package/makedevs/README for details on the usage and
140 syntax of these files.
142 config BR2_ROOTFS_STATIC_DEVICE_TABLE
143 string "Path to the device tables"
144 default "system/device_table_dev.txt"
145 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
147 Specify a space-separated list of device table locations,
148 that will be passed to the makedevs utility to create all
149 the special device files under /dev.
151 See package/makedevs/README for details on the usage and
152 syntax of these files.
155 prompt "Root FS skeleton"
157 config BR2_ROOTFS_SKELETON_DEFAULT
158 bool "default target skeleton"
160 Use default target skeleton
162 config BR2_ROOTFS_SKELETON_CUSTOM
163 bool "custom target skeleton"
165 Use custom target skeleton.
169 if BR2_ROOTFS_SKELETON_CUSTOM
170 config BR2_ROOTFS_SKELETON_CUSTOM_PATH
171 string "custom target skeleton path"
172 default "system/skeleton"
174 Path to custom target skeleton.
177 if BR2_ROOTFS_SKELETON_DEFAULT
179 config BR2_TARGET_GENERIC_ROOT_PASSWD
180 string "Root password"
183 Set the initial root password (in clear). It will be md5-encrypted.
185 If set to empty (the default), then no root password will be set,
186 and root will need no password to log in.
189 Although pretty strong, MD5 is now an old hash function, and
190 suffers from some weaknesses, which makes it susceptible to attacks.
191 It is showing its age, so this root password should not be trusted
192 to properly secure any product that can be shipped to the wide,
196 The password appears in clear in the .config file, and may appear
197 in the build log! Avoid using a valuable password if either the
198 .config file or the build log may be distributed!
202 default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
204 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
211 config BR2_SYSTEM_BIN_SH_BASH
213 depends on BR2_USE_MMU # bash
214 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
215 select BR2_PACKAGE_BASH
217 config BR2_SYSTEM_BIN_SH_DASH
219 depends on BR2_USE_MMU # dash
220 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
221 select BR2_PACKAGE_DASH
223 config BR2_SYSTEM_BIN_SH_ZSH
225 depends on BR2_USE_MMU # zsh
226 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
227 select BR2_PACKAGE_ZSH
229 comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
230 depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
232 config BR2_SYSTEM_BIN_SH_NONE
237 config BR2_SYSTEM_BIN_SH
239 default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
240 default "bash" if BR2_SYSTEM_BIN_SH_BASH
241 default "dash" if BR2_SYSTEM_BIN_SH_DASH
242 default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
244 config BR2_TARGET_GENERIC_GETTY
245 bool "Run a getty (login prompt) after boot"
248 if BR2_TARGET_GENERIC_GETTY
250 config BR2_TARGET_GENERIC_GETTY_PORT
254 Specify a port to run a getty on.
258 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
260 Select a baudrate to use.
262 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
263 bool "keep kernel default"
264 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
266 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
268 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
270 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
272 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
276 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
278 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
279 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
280 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
281 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
282 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
283 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
285 config BR2_TARGET_GENERIC_GETTY_TERM
286 string "TERM environment variable"
291 config BR2_TARGET_GENERIC_GETTY_OPTIONS
292 string "other options to pass to getty"
295 Any other flags you want to pass to getty,
296 Refer to getty --help for details.
300 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
301 bool "remount root filesystem read-write during boot"
304 The root filesystem is typically mounted read-only at boot.
305 By default, buildroot remounts it in read-write mode early during the
307 Say no here if you would rather like your root filesystem to remain
311 endif # BR2_ROOTFS_SKELETON_DEFAULT
314 config BR2_SYSTEM_DHCP
315 string "Network interface to configure through DHCP"
317 depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
319 Enter here the name of the network interface (E.G. eth0) to
320 automatically configure through DHCP at bootup.
322 If left empty, no automatic DHCP requests will take place.
324 For more complicated network setups use an overlay to overwrite
325 /etc/network/interfaces or add a networkd configuration file.
327 comment "automatic network configuration via DHCP is not compatible with networkd"
328 depends on BR2_PACKAGE_SYSTEMD_NETWORKD
330 comment "automatic network configuration via DHCP needs ifupdown or busybox"
331 depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
333 config BR2_TARGET_TZ_INFO
334 bool "Install timezone info"
335 # No timezone for musl; only for uClibc or (e)glibc.
336 depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
337 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
338 select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
340 Say 'y' here to install timezone info.
342 if BR2_TARGET_TZ_INFO
344 config BR2_TARGET_TZ_ZONELIST
345 string "timezone list"
348 Space-separated list of time zones to compile.
350 The value "default" includes all commonly used time zones. Note
351 that this set consumes around 5.5M for (e)glibc and 2.1M for uClibc.
353 The full list is the list of files in the time zone database source,
354 not including the build and .tab files.
356 config BR2_TARGET_LOCALTIME
357 string "default local time"
360 The time zone to install as the default local time, expressed as a
361 tzdata location, such as:
368 If empty, no local time will be set, and the dates will be
371 endif # BR2_TARGET_TZ_INFO
373 config BR2_ROOTFS_USERS_TABLES
374 string "Path to the users tables"
376 Specify a space-separated list of users table locations,
377 that will be passed to the mkusers utility to create
378 users on the system, with home directory, password, etc.
380 See manual for details on the usage and syntax of these files.
382 config BR2_ROOTFS_OVERLAY
383 string "Root filesystem overlay directories"
386 Specify a list of directories that are copied over the target
387 root filesystem after the build has finished and before it is
388 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.
393 config BR2_ROOTFS_POST_BUILD_SCRIPT
394 string "Custom scripts to run before creating filesystem images"
397 Specify a space-separated list of scripts to be run after the build
398 has finished and before Buildroot starts packing the files into
399 selected filesystem images.
401 This gives users the opportunity to do board-specific cleanups,
402 add-ons and the like, so the generated files can be used directly
403 without further processing.
405 These scripts are called with the target directory name as first
406 argument. Make sure the exit code of those scripts are 0, otherwise
407 make will stop after calling them.
409 config BR2_ROOTFS_POST_IMAGE_SCRIPT
410 string "Custom scripts to run after creating filesystem images"
413 Specify a space-separated list of scripts to be run after
414 the build has finished and after Buildroot has packed the
415 files into selected filesystem images.
417 This can for example be used to call a tool building a
418 firmware image from different images generated by Buildroot,
419 or automatically extract the tarball root filesystem image
420 into some location exported by NFS, or any other custom
423 These scripts are called with the images directory name as
424 first argument. The script is executed from the main Buildroot
425 source directory as the current directory.
427 config BR2_ROOTFS_POST_SCRIPT_ARGS
428 string "Extra post-{build,image} arguments"
429 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
431 Pass these additional arguments to each post-build or post-image
434 Note that all the post-build and post-image scripts will be passed
435 the same set of arguments, you can not pass different arguments to
438 Note also, as stated in their respective help text, that the first
439 argument to each post-build or post-image script is the target
440 directory / images directory. The arguments in this option will be
441 passed *after* those.