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 config BR2_TARGET_GENERIC_ISSUE
10 string "System banner"
11 default "Welcome to Buildroot"
13 Select system banner (/etc/issue) to be displayed at login.
16 bool "Passwords encoding"
17 default BR2_TARGET_GENERIC_PASSWD_MD5
19 Choose the password encoding scheme to use when Buildroot
20 needs to encode a password (eg. the root password, below).
22 Note: this is used at build-time, and *not* at runtime.
24 config BR2_TARGET_GENERIC_PASSWD_DES
27 Use standard 56-bit DES-based crypt(3) to encode passwords.
29 Old, wildly available, but also the weakest, very susceptible to
32 config BR2_TARGET_GENERIC_PASSWD_MD5
35 Use MD5 to encode passwords.
37 The default. Wildly available, and pretty good.
38 Although pretty strong, MD5 is now an old hash function, and
39 suffers from some weaknesses, which makes it susceptible to
42 config BR2_TARGET_GENERIC_PASSWD_SHA256
45 Use SHA256 to encode passwords.
47 Very strong, but not ubiquitous, although available in glibc
48 for some time now. Choose only if you are sure your C library
49 understands SHA256 passwords.
51 config BR2_TARGET_GENERIC_PASSWD_SHA512
54 Use SHA512 to encode passwords.
56 Extremely strong, but not ubiquitous, although available in glibc
57 for some time now. Choose only if you are sure your C library
58 understands SHA512 passwords.
60 endchoice # Passwd encoding
62 config BR2_TARGET_GENERIC_PASSWD_METHOD
64 default "des" if BR2_TARGET_GENERIC_PASSWD_DES
65 default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5
66 default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
67 default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
70 prompt "/dev management"
71 default BR2_ROOTFS_DEVICE_CREATION_STATIC
73 config BR2_ROOTFS_DEVICE_CREATION_STATIC
74 bool "Static using device table"
76 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
77 bool "Dynamic using devtmpfs only"
79 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
80 bool "Dynamic using mdev"
81 select BR2_PACKAGE_BUSYBOX
83 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
84 bool "Dynamic using udev"
85 depends on BR2_LARGEFILE # udev
86 depends on BR2_USE_WCHAR # udev
87 depends on !BR2_PREFER_STATIC_LIB # udev -> kmod
88 select BR2_PACKAGE_UDEV
90 comment "udev requires a toolchain with LARGEFILE + WCHAR support"
91 depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
93 comment "udev doesn't work with 'prefer static libraries'"
94 depends on BR2_PREFER_STATIC_LIB
100 default BR2_INIT_BUSYBOX
102 config BR2_INIT_BUSYBOX
104 select BR2_PACKAGE_BUSYBOX
108 select BR2_PACKAGE_SYSVINIT
110 config BR2_INIT_SYSTEMD
112 depends on BR2_LARGEFILE
113 depends on BR2_USE_WCHAR
114 depends on BR2_INET_IPV6
115 depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
116 depends on BR2_TOOLCHAIN_HAS_THREADS
117 depends on BR2_USE_MMU
118 select BR2_PACKAGE_DBUS
119 select BR2_PACKAGE_SYSTEMD
121 comment 'systemd requires largefile, wchar, IPv6, threads and udev support'
122 depends on !(BR2_LARGEFILE && BR2_USE_WCHAR && \
123 BR2_INET_IPV6 && BR2_TOOLCHAIN_HAS_THREADS && \
124 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV)
131 config BR2_ROOTFS_DEVICE_TABLE
132 string "Path to the permission tables"
133 default "system/device_table.txt"
135 Specify a space-separated list of permission table locations,
136 that will be passed to the makedevs utility to assign
137 correct owners and permissions on various files in the
140 See package/makedevs/README for details on the usage and
141 syntax of these files.
143 config BR2_ROOTFS_STATIC_DEVICE_TABLE
144 string "Path to the device tables"
145 default "system/device_table_dev.txt"
146 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
148 Specify a space-separated list of device table locations,
149 that will be passed to the makedevs utility to create all
150 the special device files under /dev.
152 See package/makedevs/README for details on the usage and
153 syntax of these files.
156 prompt "Root FS skeleton"
158 config BR2_ROOTFS_SKELETON_DEFAULT
159 bool "default target skeleton"
161 Use default target skeleton
163 config BR2_ROOTFS_SKELETON_CUSTOM
164 bool "custom target skeleton"
166 Use custom target skeleton.
170 if BR2_ROOTFS_SKELETON_CUSTOM
171 config BR2_ROOTFS_SKELETON_CUSTOM_PATH
172 string "custom target skeleton path"
173 default "system/skeleton"
175 Path custom target skeleton.
178 if BR2_ROOTFS_SKELETON_DEFAULT
180 config BR2_TARGET_GENERIC_ROOT_PASSWD
181 string "Root password"
184 Set the initial root password (in clear). It will be md5-encrypted.
186 If set to empty (the default), then no root password will be set,
187 and root will need no password to log in.
190 Although pretty strong, MD5 is now an old hash function, and
191 suffers from some weaknesses, which makes it susceptible to attacks.
192 It is showing its age, so this root password should not be trusted
193 to properly secure any product that can be shipped to the wide,
197 The password appears in clear in the .config file, and may appear
198 in the build log! Avoid using a valuable password if either the
199 .config file or the build log may be distributed!
201 config BR2_TARGET_GENERIC_GETTY
202 bool "Run a getty (login prompt) after boot"
205 if BR2_TARGET_GENERIC_GETTY
207 config BR2_TARGET_GENERIC_GETTY_PORT
211 Specify a port to run a getty on.
215 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
217 Select a baudrate to use.
219 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
220 bool "keep kernel default"
221 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
223 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
225 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
227 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
229 config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
233 config BR2_TARGET_GENERIC_GETTY_BAUDRATE
235 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
236 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
237 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
238 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
239 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
240 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
242 config BR2_TARGET_GENERIC_GETTY_TERM
243 string "TERM environment variable"
248 config BR2_TARGET_GENERIC_GETTY_OPTIONS
249 string "other options to pass to getty"
252 Any other flags you want to pass to getty,
253 Refer to getty --help for details.
257 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
258 bool "remount root filesystem read-write during boot"
261 The root filesystem is typically mounted read-only at boot.
262 By default, buildroot remounts it in read-write mode early during the
264 Say no here if you would rather like your root filesystem to remain
268 endif # BR2_ROOTFS_SKELETON_DEFAULT
270 config BR2_ROOTFS_OVERLAY
271 string "Root filesystem overlay directories"
274 Specify a list of directories that are copied over the target
275 root filesystem after the build has finished and before it is
276 packed into the selected filesystem images.
278 They are copied as-is into the rootfs, excluding files ending with
279 ~ and .git, .svn and .hg directories.
281 config BR2_ROOTFS_POST_BUILD_SCRIPT
282 string "Custom scripts to run before creating filesystem images"
285 Specify a space-separated list of scripts to be run after the build
286 has finished and before Buildroot starts packing the files into
287 selected filesystem images.
289 This gives users the oportunity to do board-specific cleanups,
290 add-ons and the like, so the generated files can be used directly
291 without further processing.
293 These scripts are called with the target directory name as first
294 argument. Make sure the exit code of those scripts are 0, otherwise
295 make will stop after calling them.
297 config BR2_ROOTFS_POST_IMAGE_SCRIPT
298 string "Custom scripts to run after creating filesystem images"
301 Specify a space-separated list of scripts to be run after
302 the build has finished and after Buildroot has packed the
303 files into selected filesystem images.
305 This can for example be used to call a tool building a
306 firmware image from different images generated by Buildroot,
307 or automatically extract the tarball root filesystem image
308 into some location exported by NFS, or any other custom
311 These scripts are called with the images directory name as
312 first argument. The script is executed from the main Buildroot
313 source directory as the current directory.
315 config BR2_ROOTFS_POST_SCRIPT_ARGS
316 string "Extra post-{build,image} arguments"
317 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
319 Pass these aditional arguments to each post-build or post-image
322 Note that all the post-build and post-image scripts will be passed
323 the same set of arguments, you can not pass different arguments to
326 Note also, as stated in their respective help text, that the first
327 argument to each post-build or post-image script is the target
328 directory / images directory. The arguments in this option will be
329 passed *after* those.