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_DES
33 Use standard 56-bit DES-based crypt(3) to encode passwords.
35 Old, wildly available, but also the weakest, very susceptible to
38 config BR2_TARGET_GENERIC_PASSWD_MD5
41 Use MD5 to encode passwords.
43 The default. Wildly available, and pretty good.
44 Although pretty strong, MD5 is now an old hash function, and
45 suffers from some weaknesses, which makes it susceptible to
48 config BR2_TARGET_GENERIC_PASSWD_SHA256
51 Use SHA256 to encode passwords.
53 Very strong, but not ubiquitous, although available in glibc
54 for some time now. Choose only if you are sure your C library
55 understands SHA256 passwords.
57 config BR2_TARGET_GENERIC_PASSWD_SHA512
60 Use SHA512 to encode passwords.
62 Extremely strong, but not ubiquitous, although available in glibc
63 for some time now. Choose only if you are sure your C library
64 understands SHA512 passwords.
66 endchoice # Passwd encoding
68 config BR2_TARGET_GENERIC_PASSWD_METHOD
70 default "des" if BR2_TARGET_GENERIC_PASSWD_DES
71 default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
72 default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
73 default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
77 default BR2_INIT_BUSYBOX
79 config BR2_INIT_BUSYBOX
81 select BR2_PACKAGE_BUSYBOX
85 select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
86 select BR2_PACKAGE_SYSVINIT
88 config BR2_INIT_SYSTEMD
90 depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
91 depends on BR2_TOOLCHAIN_USES_GLIBC
92 depends on BR2_LARGEFILE
93 depends on BR2_USE_WCHAR
94 depends on BR2_INET_IPV6
95 depends on BR2_TOOLCHAIN_HAS_THREADS
96 depends on BR2_TOOLCHAIN_HAS_SSP
97 depends on BR2_USE_MMU
98 depends on !BR2_PREFER_STATIC_LIB
99 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
100 select BR2_PACKAGE_SYSTEMD
102 comment 'systemd needs an (e)glibc toolchain, headers >= 3.10'
103 depends on !(BR2_TOOLCHAIN_USES_GLIBC \
104 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
112 prompt "/dev management" if !BR2_INIT_SYSTEMD
113 default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
115 config BR2_ROOTFS_DEVICE_CREATION_STATIC
116 bool "Static using device table"
118 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
119 bool "Dynamic using devtmpfs only"
121 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
122 bool "Dynamic using mdev"
123 select BR2_PACKAGE_BUSYBOX
125 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
126 bool "Dynamic using eudev"
127 depends on !BR2_avr32 # eudev
128 depends on BR2_LARGEFILE
129 depends on BR2_USE_WCHAR
130 depends on !BR2_PREFER_STATIC_LIB
131 depends on BR2_USE_MMU # eudev
132 select BR2_PACKAGE_EUDEV
134 comment "eudev needs a toolchain w/ largefile, wchar, dynamic library"
135 depends on !BR2_avr32 # eudev
136 depends on BR2_USE_MMU
137 depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB
141 comment "/dev management using udev (from systemd)"
142 depends on BR2_INIT_SYSTEMD
144 config BR2_ROOTFS_DEVICE_TABLE
145 string "Path to the permission tables"
146 default "system/device_table.txt"
148 Specify a space-separated list of permission table locations,
149 that will be passed to the makedevs utility to assign
150 correct owners and permissions on various files in the
153 See package/makedevs/README for details on the usage and
154 syntax of these files.
156 config BR2_ROOTFS_STATIC_DEVICE_TABLE
157 string "Path to the device tables"
158 default "system/device_table_dev.txt"
159 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
161 Specify a space-separated list of device table locations,
162 that will be passed to the makedevs utility to create all
163 the special device files under /dev.
165 See package/makedevs/README for details on the usage and
166 syntax of these files.
169 prompt "Root FS skeleton"
171 config BR2_ROOTFS_SKELETON_DEFAULT
172 bool "default target skeleton"
174 Use default target skeleton
176 config BR2_ROOTFS_SKELETON_CUSTOM
177 bool "custom target skeleton"
179 Use custom target skeleton.
183 if BR2_ROOTFS_SKELETON_CUSTOM
184 config BR2_ROOTFS_SKELETON_CUSTOM_PATH
185 string "custom target skeleton path"
186 default "system/skeleton"
188 Path to custom target skeleton.
191 if BR2_ROOTFS_SKELETON_DEFAULT
193 config BR2_TARGET_GENERIC_ROOT_PASSWD
194 string "Root password"
197 Set the initial root password (in clear). It will be md5-encrypted.
199 If set to empty (the default), then no root password will be set,
200 and root will need no password to log in.
203 Although pretty strong, MD5 is now an old hash function, and
204 suffers from some weaknesses, which makes it susceptible to attacks.
205 It is showing its age, so this root password should not be trusted
206 to properly secure any product that can be shipped to the wide,
210 The password appears in clear in the .config file, and may appear
211 in the build log! Avoid using a valuable password if either the
212 .config file or the build log may be distributed!
214 config BR2_TARGET_GENERIC_GETTY
215 bool "Run a getty (login prompt) after boot"
218 if BR2_TARGET_GENERIC_GETTY
220 config BR2_TARGET_GENERIC_GETTY_PORT
224 Specify a port to run a getty on.
228 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
230 Select a baudrate to use.
232 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
233 bool "keep kernel default"
234 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
236 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
238 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
240 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
242 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
246 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
248 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
249 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
250 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
251 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
252 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
253 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
255 config BR2_TARGET_GENERIC_GETTY_TERM
256 string "TERM environment variable"
261 config BR2_TARGET_GENERIC_GETTY_OPTIONS
262 string "other options to pass to getty"
265 Any other flags you want to pass to getty,
266 Refer to getty --help for details.
270 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
271 bool "remount root filesystem read-write during boot"
274 The root filesystem is typically mounted read-only at boot.
275 By default, buildroot remounts it in read-write mode early during the
277 Say no here if you would rather like your root filesystem to remain
281 endif # BR2_ROOTFS_SKELETON_DEFAULT
283 config BR2_TARGET_TZ_INFO
284 bool "Install timezone info"
285 # No timezone for musl; only for uClibc or (e)glibc.
286 depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
287 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
288 select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
290 Say 'y' here to install timezone info.
292 if BR2_TARGET_TZ_INFO
294 config BR2_TARGET_TZ_ZONELIST
295 string "timezone list"
298 Space-separated list of time zones to compile.
300 The value "default" includes all commonly used time zones. Note
301 that this set consumes around 5.5M for (e)glibc and 2.1M for uClibc.
303 The full list is the list of files in the time zone database source,
304 not including the build and .tab files.
306 config BR2_TARGET_LOCALTIME
307 string "default local time"
309 The time zone to install as the default local time, expressed as a
310 tzdata location, such as:
317 If empty, no local time will be set, and the dates will be
320 endif # BR2_TARGET_TZ_INFO
322 config BR2_ROOTFS_USERS_TABLES
323 string "Path to the users tables"
325 Specify a space-separated list of users table locations,
326 that will be passed to the mkusers utility to create
327 users on the system, with home directory, password, etc.
329 See manual for details on the usage and syntax of these files.
331 config BR2_ROOTFS_OVERLAY
332 string "Root filesystem overlay directories"
335 Specify a list of directories that are copied over the target
336 root filesystem after the build has finished and before it is
337 packed into the selected filesystem images.
339 They are copied as-is into the rootfs, excluding files ending with
340 ~ and .git, .svn and .hg directories.
342 config BR2_ROOTFS_POST_BUILD_SCRIPT
343 string "Custom scripts to run before creating filesystem images"
346 Specify a space-separated list of scripts to be run after the build
347 has finished and before Buildroot starts packing the files into
348 selected filesystem images.
350 This gives users the opportunity to do board-specific cleanups,
351 add-ons and the like, so the generated files can be used directly
352 without further processing.
354 These scripts are called with the target directory name as first
355 argument. Make sure the exit code of those scripts are 0, otherwise
356 make will stop after calling them.
358 config BR2_ROOTFS_POST_IMAGE_SCRIPT
359 string "Custom scripts to run after creating filesystem images"
362 Specify a space-separated list of scripts to be run after
363 the build has finished and after Buildroot has packed the
364 files into selected filesystem images.
366 This can for example be used to call a tool building a
367 firmware image from different images generated by Buildroot,
368 or automatically extract the tarball root filesystem image
369 into some location exported by NFS, or any other custom
372 These scripts are called with the images directory name as
373 first argument. The script is executed from the main Buildroot
374 source directory as the current directory.
376 config BR2_ROOTFS_POST_SCRIPT_ARGS
377 string "Extra post-{build,image} arguments"
378 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
380 Pass these additional arguments to each post-build or post-image
383 Note that all the post-build and post-image scripts will be passed
384 the same set of arguments, you can not pass different arguments to
387 Note also, as stated in their respective help text, that the first
388 argument to each post-build or post-image script is the target
389 directory / images directory. The arguments in this option will be
390 passed *after* those.