xref: /OK3568_Linux_fs/buildroot/package/busybox/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_BUSYBOX
2	bool "BusyBox"
3	default y
4	help
5	  The Swiss Army Knife of embedded Linux. It slices, it dices,
6	  it makes Julian Fries.
7
8	  http://busybox.net/
9
10	  Most people will answer Y.
11
12if BR2_PACKAGE_BUSYBOX
13
14config BR2_PACKAGE_BUSYBOX_STATIC
15	bool "Enable static"
16	default y if BR2_STATIC_LIBS
17
18config BR2_PACKAGE_BUSYBOX_CONFIG
19	string "BusyBox configuration file to use?"
20	default "package/busybox/busybox.config"
21	help
22	  Some people may wish to use their own modified BusyBox
23	  configuration file, and will specify their config file
24	  location with this option.
25
26	  Most people will just use the default BusyBox configuration
27	  file.
28
29config BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES
30	string "Additional BusyBox configuration fragment files"
31	help
32	  A space-separated list of configuration fragment files,
33	  that will be merged to the main BusyBox configuration file.
34
35config BR2_PACKAGE_BUSYBOX_UNICODE
36	bool "Enable unicode support"
37	default y
38
39config BR2_PACKAGE_BUSYBOX_UNICODE_BYPASS
40	bool "Bypass unicode when printing"
41	default y
42
43# This option is not an option of Busybox, it can be selected even
44# if Busybox is not enabled.
45config BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
46	bool "Show packages that are also provided by busybox"
47	help
48	  Show packages in menuconfig that are potentially also provided
49	  by busybox.
50
51config BR2_PACKAGE_BUSYBOX_SELINUX
52	bool "Enable SELinux support"
53	default y
54	depends on BR2_PACKAGE_LIBSELINUX
55	select BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES
56	help
57	  Enable SELinux support in BusyBox. Please note that
58	  depending on your BusyBox configuration and the SELinux
59	  policy implementation, you may want to also enable
60	  BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES.
61
62	  For instance, if your BusyBox configuration only uses a
63	  couple of minor BusyBox features, such as simple command
64	  line utilities, the symlinked version of BusyBox can be used
65	  to save space. If BusyBox provides more features, such as
66	  crond, then individual binaries have to be enabled for the
67	  SELinux type transitions to occur properly.
68
69config BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES
70	bool "Individual binaries"
71	depends on !BR2_STATIC_LIBS
72	help
73	  By default (i.e with this option disabled), Busybox is
74	  installed as a single binary in /bin/busybox and all applets
75	  are a symbolic link to /bin/busybox.
76
77	  With this option enabled, each applet is a separate binary,
78	  which is needed for proper operation with SELinux.
79
80comment "Busybox individual binaries need a toolchain w/ dynamic library"
81	depends on BR2_STATIC_LIBS
82
83config BR2_PACKAGE_BUSYBOX_WATCHDOG
84	bool "Install the watchdog daemon startup script"
85	help
86	  Install the watchdog daemon startup script,
87	  that just start at the boot the busybox watchdog daemon.
88
89if BR2_PACKAGE_BUSYBOX_WATCHDOG
90
91config BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD
92	string "Delay between reset"
93	default "5"
94	help
95	  Select the number of seconds between each
96	  reset of the watchdog (default 5)
97
98	  Use ms suffix to specify milliseconds (e.g. 500ms)
99
100endif
101
102endif
103
104if !BR2_PACKAGE_BUSYBOX # kconfig doesn't support else
105
106comment "You may need to enable other packages to get a working system"
107comment "You better know what you're doing!"
108
109# This option is not an option of Busybox, it can be selected even if
110# Busybox is not enabled. This dummy option ensures that packages that
111# depend on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS are visible when Busybox
112# is disabled.
113config BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
114	default y
115endif
116