]> Git Repo - buildroot-mgba.git/blame - system/Config.in
mongrel2: uses dlopen(), needs dynamic library support
[buildroot-mgba.git] / system / Config.in
CommitLineData
beb43c7d 1menu "System configuration"
d65976fe
PK
2
3config BR2_TARGET_GENERIC_HOSTNAME
bed4e278
TDS
4 string "System hostname"
5 default "buildroot"
6 help
7 Select system hostname to be stored in /etc/hostname.
d65976fe 8
dec1a146
SJ
9 Leave empty to not create /etc/hostname, or to keep the
10 one from a custom skeleton.
11
d65976fe 12config BR2_TARGET_GENERIC_ISSUE
bed4e278
TDS
13 string "System banner"
14 default "Welcome to Buildroot"
15 help
16 Select system banner (/etc/issue) to be displayed at login.
d65976fe 17
dec1a146
SJ
18 Leave empty to not create /etc/issue, or to keep the
19 one from a custom skeleton.
20
72defc45
YM
21choice
22 bool "Passwords encoding"
23 default BR2_TARGET_GENERIC_PASSWD_MD5
24 help
25 Choose the password encoding scheme to use when Buildroot
26 needs to encode a password (eg. the root password, below).
beea18a4 27
72defc45
YM
28 Note: this is used at build-time, and *not* at runtime.
29
72defc45
YM
30config BR2_TARGET_GENERIC_PASSWD_MD5
31 bool "md5"
32 help
33 Use MD5 to encode passwords.
beea18a4 34
72defc45
YM
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
38 brute-force attacks.
39
40config BR2_TARGET_GENERIC_PASSWD_SHA256
41 bool "sha-256"
42 help
43 Use SHA256 to encode passwords.
beea18a4 44
72defc45
YM
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.
48
49config BR2_TARGET_GENERIC_PASSWD_SHA512
50 bool "sha-512"
51 help
52 Use SHA512 to encode passwords.
beea18a4 53
72defc45
YM
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.
57
58endchoice # Passwd encoding
59
60config BR2_TARGET_GENERIC_PASSWD_METHOD
61 string
72defc45
YM
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
65
c92aacd3
MR
66choice
67 prompt "Init system"
68 default BR2_INIT_BUSYBOX
69
70config BR2_INIT_BUSYBOX
0be303ca 71 bool "BusyBox"
c92aacd3 72 select BR2_PACKAGE_BUSYBOX
89d39fc7 73 select BR2_PACKAGE_INITSCRIPTS
c92aacd3
MR
74
75config BR2_INIT_SYSV
76 bool "systemV"
cac4fe50 77 select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
89d39fc7 78 select BR2_PACKAGE_INITSCRIPTS
c92aacd3
MR
79 select BR2_PACKAGE_SYSVINIT
80
c5bd8af6
YM
81# In Buildroot, we decided not to support a split-usr when systemd is
82# used as an init system. This is a design decision, not a systemd
83# issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
84# with BR2_PACKAGE_SYSTEMD.
c92aacd3
MR
85config BR2_INIT_SYSTEMD
86 bool "systemd"
db7ad005 87 depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
2c66e442 88 depends on BR2_TOOLCHAIN_USES_GLIBC
c92aacd3 89 depends on BR2_USE_WCHAR
c92aacd3 90 depends on BR2_TOOLCHAIN_HAS_THREADS
2c66e442 91 depends on BR2_TOOLCHAIN_HAS_SSP
3845a93b 92 depends on BR2_USE_MMU
665e13c8 93 depends on !BR2_STATIC_LIBS
5749d9a6 94 depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
b4718c3a 95 select BR2_ROOTFS_MERGED_USR if BR2_ROOTFS_SKELETON_DEFAULT
c92aacd3
MR
96 select BR2_PACKAGE_SYSTEMD
97
b287378d 98comment "systemd needs (e)glibc toolchain, headers >= 3.10"
24946467 99 depends on !(BR2_TOOLCHAIN_USES_GLIBC \
5749d9a6 100 && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10)
c92aacd3 101
0c00636e
YM
102config BR2_INIT_NONE
103 bool "None"
104
c92aacd3
MR
105endchoice
106
0b90a82c 107choice
2c66e442 108 prompt "/dev management" if !BR2_INIT_SYSTEMD
0b90a82c 109 default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
110
111config BR2_ROOTFS_DEVICE_CREATION_STATIC
112 bool "Static using device table"
113
114config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
115 bool "Dynamic using devtmpfs only"
116
117config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
571552c4 118 bool "Dynamic using devtmpfs + mdev"
0b90a82c 119 select BR2_PACKAGE_BUSYBOX
120
937a9544 121config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
571552c4 122 bool "Dynamic using devtmpfs + eudev"
937a9544 123 depends on BR2_USE_WCHAR
665e13c8 124 depends on !BR2_STATIC_LIBS
b108fdcb 125 depends on BR2_USE_MMU # eudev
937a9544 126 select BR2_PACKAGE_EUDEV
0b90a82c 127
93026a57 128comment "eudev needs a toolchain w/ wchar, dynamic library"
b108fdcb 129 depends on BR2_USE_MMU
93026a57 130 depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
0b90a82c 131
132endchoice
133
2c66e442 134comment "/dev management using udev (from systemd)"
135 depends on BR2_INIT_SYSTEMD
136
e23a4bc7 137config BR2_ROOTFS_DEVICE_TABLE
9dc7b73f 138 string "Path to the permission tables"
9d8dd5ee 139 default "system/device_table.txt"
9dc7b73f
PK
140 help
141 Specify a space-separated list of permission table locations,
142 that will be passed to the makedevs utility to assign
143 correct owners and permissions on various files in the
144 target filesystem.
145
146 See package/makedevs/README for details on the usage and
147 syntax of these files.
148
149config BR2_ROOTFS_STATIC_DEVICE_TABLE
e23a4bc7 150 string "Path to the device tables"
9d8dd5ee 151 default "system/device_table_dev.txt"
9dc7b73f 152 depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
e23a4bc7
PK
153 help
154 Specify a space-separated list of device table locations,
155 that will be passed to the makedevs utility to create all
9dc7b73f 156 the special device files under /dev.
e23a4bc7
PK
157
158 See package/makedevs/README for details on the usage and
159 syntax of these files.
160
161choice
162 prompt "Root FS skeleton"
163
164config BR2_ROOTFS_SKELETON_DEFAULT
165 bool "default target skeleton"
166 help
167 Use default target skeleton
168
169config BR2_ROOTFS_SKELETON_CUSTOM
170 bool "custom target skeleton"
171 help
172 Use custom target skeleton.
173
174endchoice
175
176if BR2_ROOTFS_SKELETON_CUSTOM
177config BR2_ROOTFS_SKELETON_CUSTOM_PATH
178 string "custom target skeleton path"
6c3e3ad4 179 default "system/skeleton"
e23a4bc7 180 help
4e551538 181 Path to custom target skeleton.
e23a4bc7
PK
182endif
183
7d9d09db 184if BR2_ROOTFS_SKELETON_DEFAULT
9611fd60 185
c5bd8af6
YM
186config BR2_ROOTFS_MERGED_USR
187 bool "Use symlinks to /usr for /bin, /sbin and /lib"
188 help
189 If you say 'n' here, then /bin, /sbin and /lib and their
190 counterparts in /usr will be separate directories. This
191 is the historical UNIX way. In this case, /usr can be a
192 filesystem on a partition separate from / .
193
194 If you say 'y' here, then /bin, /sbin and /lib will be symlinks
195 to their counterparts in /usr. In this case, /usr can not be a
196 separate filesystem.
197
18fa4a32
LC
198config BR2_TARGET_ENABLE_ROOT_LOGIN
199 bool "Enable root login with password"
200 default y
201 help
202 Allow root to log in with a password.
203
204 If not enabled, root will not be able to log in with a password.
205 However, if you have an ssh server and you add an ssh key, you
206 can still allow root to log in. Alternatively, you can use sudo
207 to become root.
208
b98b191b
YM
209config BR2_TARGET_GENERIC_ROOT_PASSWD
210 string "Root password"
211 default ""
18fa4a32 212 depends on BR2_TARGET_ENABLE_ROOT_LOGIN
b98b191b 213 help
18fa4a32 214 Set the initial root password.
beea18a4 215
b98b191b
YM
216 If set to empty (the default), then no root password will be set,
217 and root will need no password to log in.
beea18a4 218
18fa4a32
LC
219 If the password starts with any of $1$, $5$ or $6$, it is considered
220 to be already crypt-encoded with respectively md5, sha256 or sha512.
221 Any other value is taken to be a clear-text value, and is crypt-encoded
222 as per the "Passwords encoding" scheme, above.
223
224 Note: "$" signs in the hashed password must be doubled. For example,
225 if the hashed password is "$1$longsalt$v35DIIeMo4yUfI23yditq0",
226 then you must enter it as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0"
227 (this is necessary otherwise make would attempt to interpret the $
228 as a variable expansion).
beea18a4 229
b98b191b 230 WARNING! WARNING!
18fa4a32 231 The password appears as-is in the .config file, and may appear
b98b191b 232 in the build log! Avoid using a valuable password if either the
18fa4a32
LC
233 .config file or the build log may be distributed, or at the
234 very least use a strong cryptographic hash for your password!
b98b191b 235
02e5cef1
YM
236choice
237 bool "/bin/sh"
238 default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
239 help
240 Select which shell will provide /bin/sh.
241
242# busybox has shells that work on noMMU
243config BR2_SYSTEM_BIN_SH_BUSYBOX
244 bool "busybox' default shell"
245 depends on BR2_PACKAGE_BUSYBOX
246
247config BR2_SYSTEM_BIN_SH_BASH
248 bool "bash"
249 depends on BR2_USE_MMU # bash
250 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
251 select BR2_PACKAGE_BASH
252
253config BR2_SYSTEM_BIN_SH_DASH
254 bool "dash"
255 depends on BR2_USE_MMU # dash
256 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
257 select BR2_PACKAGE_DASH
258
259config BR2_SYSTEM_BIN_SH_ZSH
260 bool "zsh"
261 depends on BR2_USE_MMU # zsh
262 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
263 select BR2_PACKAGE_ZSH
264
265comment "bash, dash, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
266 depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
267
268config BR2_SYSTEM_BIN_SH_NONE
269 bool "none"
270
271endchoice # /bin/sh
272
273config BR2_SYSTEM_BIN_SH
274 string
e26ec6e4
MS
275 default "busybox" if BR2_SYSTEM_BIN_SH_BUSYBOX
276 default "bash" if BR2_SYSTEM_BIN_SH_BASH
277 default "dash" if BR2_SYSTEM_BIN_SH_DASH
278 default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
02e5cef1 279
6fc79762 280menuconfig BR2_TARGET_GENERIC_GETTY
bed4e278
TDS
281 bool "Run a getty (login prompt) after boot"
282 default y
ed6912e8
AI
283
284if BR2_TARGET_GENERIC_GETTY
9611fd60 285config BR2_TARGET_GENERIC_GETTY_PORT
ed6912e8 286 string "TTY port"
131300e6 287 default "console"
5cfc41c7 288 help
ed6912e8 289 Specify a port to run a getty on.
9611fd60
PK
290
291choice
ed6912e8 292 prompt "Baudrate"
131300e6 293 default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
9611fd60
PK
294 help
295 Select a baudrate to use.
296
63534684 297config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
bed4e278 298 bool "keep kernel default"
9611fd60
PK
299config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
300 bool "9600"
301config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
302 bool "19200"
303config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
304 bool "38400"
305config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
306 bool "57600"
307config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
308 bool "115200"
309endchoice
310
311config BR2_TARGET_GENERIC_GETTY_BAUDRATE
312 string
63534684 313 default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
9611fd60
PK
314 default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
315 default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
316 default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
317 default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
318 default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
319
a0df7e1f 320config BR2_TARGET_GENERIC_GETTY_TERM
ed6912e8 321 string "TERM environment variable"
a0df7e1f
RB
322 default "vt100"
323 help
324 Specify a TERM type.
a68a5125
AI
325
326config BR2_TARGET_GENERIC_GETTY_OPTIONS
327 string "other options to pass to getty"
328 default ""
329 help
330 Any other flags you want to pass to getty,
331 Refer to getty --help for details.
ed6912e8 332endif
a0df7e1f 333
4952dddb
DM
334config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
335 bool "remount root filesystem read-write during boot"
336 default y
337 help
338 The root filesystem is typically mounted read-only at boot.
339 By default, buildroot remounts it in read-write mode early during the
340 boot process.
341 Say no here if you would rather like your root filesystem to remain
342 read-only.
343 If unsure, say Y.
344
345endif # BR2_ROOTFS_SKELETON_DEFAULT
346
f4f62a3c
JR
347
348config BR2_SYSTEM_DHCP
349 string "Network interface to configure through DHCP"
350 default ""
351 depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && (BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
352 help
353 Enter here the name of the network interface (E.G. eth0) to
354 automatically configure through DHCP at bootup.
355
356 If left empty, no automatic DHCP requests will take place.
357
358 For more complicated network setups use an overlay to overwrite
359 /etc/network/interfaces or add a networkd configuration file.
360
361comment "automatic network configuration via DHCP is not compatible with networkd"
362 depends on BR2_PACKAGE_SYSTEMD_NETWORKD
363
364comment "automatic network configuration via DHCP needs ifupdown or busybox"
365 depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN)
366
d6a37917
YM
367config BR2_TARGET_TZ_INFO
368 bool "Install timezone info"
337fbd54
YM
369 # No timezone for musl; only for uClibc or (e)glibc.
370 depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
371 select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
372 select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
d6a37917
YM
373 help
374 Say 'y' here to install timezone info.
375
376if BR2_TARGET_TZ_INFO
377
378config BR2_TARGET_TZ_ZONELIST
379 string "timezone list"
380 default "default"
381 help
382 Space-separated list of time zones to compile.
383
384 The value "default" includes all commonly used time zones. Note
337fbd54 385 that this set consumes around 5.5M for (e)glibc and 2.1M for uClibc.
d6a37917
YM
386
387 The full list is the list of files in the time zone database source,
388 not including the build and .tab files.
389
3f595cde
YM
390config BR2_TARGET_LOCALTIME
391 string "default local time"
0fa62b4c 392 default "Etc/UTC"
3f595cde
YM
393 help
394 The time zone to install as the default local time, expressed as a
395 tzdata location, such as:
396 GMT
397 Europe/Paris
398 America/New_York
399 Pacific/Wallis
400 ...
401
402 If empty, no local time will be set, and the dates will be
403 expressed in UTC.
404
d6a37917
YM
405endif # BR2_TARGET_TZ_INFO
406
b019490a
ELB
407config BR2_ROOTFS_USERS_TABLES
408 string "Path to the users tables"
409 help
410 Specify a space-separated list of users table locations,
411 that will be passed to the mkusers utility to create
412 users on the system, with home directory, password, etc.
413
414 See manual for details on the usage and syntax of these files.
415
7f860892
AVEM
416config BR2_ROOTFS_OVERLAY
417 string "Root filesystem overlay directories"
418 default ""
419 help
420 Specify a list of directories that are copied over the target
421 root filesystem after the build has finished and before it is
422 packed into the selected filesystem images.
423
424 They are copied as-is into the rootfs, excluding files ending with
425 ~ and .git, .svn and .hg directories.
426
e23a4bc7 427config BR2_ROOTFS_POST_BUILD_SCRIPT
c482eed7 428 string "Custom scripts to run before creating filesystem images"
e23a4bc7
PK
429 default ""
430 help
dbf4978e
PR
431 Specify a space-separated list of scripts to be run after the build
432 has finished and before Buildroot starts packing the files into
433 selected filesystem images.
e23a4bc7 434
5f71cc90 435 This gives users the opportunity to do board-specific cleanups,
e23a4bc7
PK
436 add-ons and the like, so the generated files can be used directly
437 without further processing.
438
f1f97b3a
YM
439 These scripts are called with the target directory name as first
440 argument. Make sure the exit code of those scripts are 0, otherwise
441 make will stop after calling them.
e23a4bc7 442
9fa32ba0
TP
443config BR2_ROOTFS_POST_IMAGE_SCRIPT
444 string "Custom scripts to run after creating filesystem images"
445 default ""
446 help
447 Specify a space-separated list of scripts to be run after
448 the build has finished and after Buildroot has packed the
449 files into selected filesystem images.
450
451 This can for example be used to call a tool building a
452 firmware image from different images generated by Buildroot,
453 or automatically extract the tarball root filesystem image
454 into some location exported by NFS, or any other custom
455 action.
456
457 These scripts are called with the images directory name as
f1f97b3a
YM
458 first argument. The script is executed from the main Buildroot
459 source directory as the current directory.
460
461config BR2_ROOTFS_POST_SCRIPT_ARGS
462 string "Extra post-{build,image} arguments"
463 depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
464 help
5f71cc90 465 Pass these additional arguments to each post-build or post-image
f1f97b3a
YM
466 scripts.
467
468 Note that all the post-build and post-image scripts will be passed
469 the same set of arguments, you can not pass different arguments to
470 each script.
471
472 Note also, as stated in their respective help text, that the first
473 argument to each post-build or post-image script is the target
474 directory / images directory. The arguments in this option will be
475 passed *after* those.
9fa32ba0 476
beb43c7d 477endmenu
This page took 0.463426 seconds and 4 git commands to generate.