diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
commit | 7d219aab70e6951ab82c27c202cac05016696723 (patch) | |
tree | 4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /util-linux | |
parent | 8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff) | |
download | busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2 busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip |
build system overhaul
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/Config.in | 156 | ||||
-rw-r--r-- | util-linux/Kbuild | 32 | ||||
-rw-r--r-- | util-linux/Makefile | 22 | ||||
-rw-r--r-- | util-linux/Makefile.in | 62 |
4 files changed, 110 insertions, 162 deletions
diff --git a/util-linux/Config.in b/util-linux/Config.in index a215e250f..a6640e19d 100644 --- a/util-linux/Config.in +++ b/util-linux/Config.in | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | menu "Linux System Utilities" | 6 | menu "Linux System Utilities" |
7 | 7 | ||
8 | config CONFIG_DMESG | 8 | config DMESG |
9 | bool "dmesg" | 9 | bool "dmesg" |
10 | default n | 10 | default n |
11 | help | 11 | help |
@@ -17,10 +17,10 @@ config CONFIG_DMESG | |||
17 | are also logged to the system console. Enable this option if you | 17 | are also logged to the system console. Enable this option if you |
18 | wish to enable the 'dmesg' utility. | 18 | wish to enable the 'dmesg' utility. |
19 | 19 | ||
20 | config CONFIG_FEATURE_DMESG_PRETTY | 20 | config FEATURE_DMESG_PRETTY |
21 | bool "pretty dmesg output" | 21 | bool "pretty dmesg output" |
22 | default y | 22 | default y |
23 | depends on CONFIG_DMESG | 23 | depends on DMESG |
24 | help | 24 | help |
25 | If you wish to scrub the syslog level from the output, say 'Y' here. | 25 | If you wish to scrub the syslog level from the output, say 'Y' here. |
26 | The syslog level is a string prefixed to every line with the form "<#>". | 26 | The syslog level is a string prefixed to every line with the form "<#>". |
@@ -37,7 +37,7 @@ config CONFIG_FEATURE_DMESG_PRETTY | |||
37 | <6>BIOS-provided physical RAM map: | 37 | <6>BIOS-provided physical RAM map: |
38 | <6> BIOS-e820: 0000000000000000 - 000000000009f000 (usable) | 38 | <6> BIOS-e820: 0000000000000000 - 000000000009f000 (usable) |
39 | 39 | ||
40 | config CONFIG_FBSET | 40 | config FBSET |
41 | bool "fbset" | 41 | bool "fbset" |
42 | default n | 42 | default n |
43 | help | 43 | help |
@@ -46,26 +46,26 @@ config CONFIG_FBSET | |||
46 | interface to access a graphics display. Enable this option | 46 | interface to access a graphics display. Enable this option |
47 | if you wish to enable the 'fbset' utility. | 47 | if you wish to enable the 'fbset' utility. |
48 | 48 | ||
49 | config CONFIG_FEATURE_FBSET_FANCY | 49 | config FEATURE_FBSET_FANCY |
50 | bool "Turn on extra fbset options" | 50 | bool "Turn on extra fbset options" |
51 | default n | 51 | default n |
52 | depends on CONFIG_FBSET | 52 | depends on FBSET |
53 | help | 53 | help |
54 | This option enables extended fbset options, allowing one to set the | 54 | This option enables extended fbset options, allowing one to set the |
55 | framebuffer size, color depth, etc. interface to access a graphics | 55 | framebuffer size, color depth, etc. interface to access a graphics |
56 | display. Enable this option if you wish to enable extended fbset | 56 | display. Enable this option if you wish to enable extended fbset |
57 | options. | 57 | options. |
58 | 58 | ||
59 | config CONFIG_FEATURE_FBSET_READMODE | 59 | config FEATURE_FBSET_READMODE |
60 | bool "Turn on fbset readmode support" | 60 | bool "Turn on fbset readmode support" |
61 | default n | 61 | default n |
62 | depends on CONFIG_FBSET | 62 | depends on FBSET |
63 | help | 63 | help |
64 | This option allows fbset to read the video mode database stored by | 64 | This option allows fbset to read the video mode database stored by |
65 | default as /etc/fb.modes, which can be used to set frame buffer | 65 | default as /etc/fb.modes, which can be used to set frame buffer |
66 | device to pre-defined video modes. | 66 | device to pre-defined video modes. |
67 | 67 | ||
68 | config CONFIG_FDFLUSH | 68 | config FDFLUSH |
69 | bool "fdflush" | 69 | bool "fdflush" |
70 | default n | 70 | default n |
71 | help | 71 | help |
@@ -77,13 +77,13 @@ config CONFIG_FDFLUSH | |||
77 | you change a disk. Most people have working hardware and can safely | 77 | you change a disk. Most people have working hardware and can safely |
78 | leave this disabled. | 78 | leave this disabled. |
79 | 79 | ||
80 | config CONFIG_FDFORMAT | 80 | config FDFORMAT |
81 | bool "fdformat" | 81 | bool "fdformat" |
82 | default n | 82 | default n |
83 | help | 83 | help |
84 | fdformat is used to low-level format a floppy disk. | 84 | fdformat is used to low-level format a floppy disk. |
85 | 85 | ||
86 | config CONFIG_FDISK | 86 | config FDISK |
87 | bool "fdisk" | 87 | bool "fdisk" |
88 | default n | 88 | default n |
89 | help | 89 | help |
@@ -95,62 +95,62 @@ config CONFIG_FDISK | |||
95 | config FDISK_SUPPORT_LARGE_DISKS | 95 | config FDISK_SUPPORT_LARGE_DISKS |
96 | bool "support over 4GB disks" | 96 | bool "support over 4GB disks" |
97 | default y | 97 | default y |
98 | depends on CONFIG_FDISK | 98 | depends on FDISK |
99 | help | 99 | help |
100 | Enable this option to support large disks > 4GB. | 100 | Enable this option to support large disks > 4GB. |
101 | 101 | ||
102 | config CONFIG_FEATURE_FDISK_WRITABLE | 102 | config FEATURE_FDISK_WRITABLE |
103 | bool "Write support" | 103 | bool "Write support" |
104 | default y | 104 | default y |
105 | depends on CONFIG_FDISK | 105 | depends on FDISK |
106 | help | 106 | help |
107 | Enabling this option allows you to create or change a partition table | 107 | Enabling this option allows you to create or change a partition table |
108 | and write those changes out to disk. If you leave this option | 108 | and write those changes out to disk. If you leave this option |
109 | disabled, you will only be able to view the partition table. | 109 | disabled, you will only be able to view the partition table. |
110 | 110 | ||
111 | config CONFIG_FEATURE_AIX_LABEL | 111 | config FEATURE_AIX_LABEL |
112 | bool "Support AIX disklabels" | 112 | bool "Support AIX disklabels" |
113 | default n | 113 | default n |
114 | depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE | 114 | depends on FDISK && FEATURE_FDISK_WRITABLE |
115 | help | 115 | help |
116 | Enabling this option allows you to create or change AIX disklabels. | 116 | Enabling this option allows you to create or change AIX disklabels. |
117 | Most people can safely leave this option disabled. | 117 | Most people can safely leave this option disabled. |
118 | 118 | ||
119 | config CONFIG_FEATURE_SGI_LABEL | 119 | config FEATURE_SGI_LABEL |
120 | bool "Support SGI disklabels" | 120 | bool "Support SGI disklabels" |
121 | default n | 121 | default n |
122 | depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE | 122 | depends on FDISK && FEATURE_FDISK_WRITABLE |
123 | help | 123 | help |
124 | Enabling this option allows you to create or change SGI disklabels. | 124 | Enabling this option allows you to create or change SGI disklabels. |
125 | Most people can safely leave this option disabled. | 125 | Most people can safely leave this option disabled. |
126 | 126 | ||
127 | config CONFIG_FEATURE_SUN_LABEL | 127 | config FEATURE_SUN_LABEL |
128 | bool "Support SUN disklabels" | 128 | bool "Support SUN disklabels" |
129 | default n | 129 | default n |
130 | depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE | 130 | depends on FDISK && FEATURE_FDISK_WRITABLE |
131 | help | 131 | help |
132 | Enabling this option allows you to create or change SUN disklabels. | 132 | Enabling this option allows you to create or change SUN disklabels. |
133 | Most people can safely leave this option disabled. | 133 | Most people can safely leave this option disabled. |
134 | 134 | ||
135 | config CONFIG_FEATURE_OSF_LABEL | 135 | config FEATURE_OSF_LABEL |
136 | bool "Support BSD disklabels" | 136 | bool "Support BSD disklabels" |
137 | default n | 137 | default n |
138 | depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE | 138 | depends on FDISK && FEATURE_FDISK_WRITABLE |
139 | help | 139 | help |
140 | Enabling this option allows you to create or change BSD disklabels | 140 | Enabling this option allows you to create or change BSD disklabels |
141 | and define and edit BSD disk slices. | 141 | and define and edit BSD disk slices. |
142 | 142 | ||
143 | config CONFIG_FEATURE_FDISK_ADVANCED | 143 | config FEATURE_FDISK_ADVANCED |
144 | bool "Support expert mode" | 144 | bool "Support expert mode" |
145 | default n | 145 | default n |
146 | depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE | 146 | depends on FDISK && FEATURE_FDISK_WRITABLE |
147 | help | 147 | help |
148 | Enabling this option allows you to do terribly unsafe things like | 148 | Enabling this option allows you to do terribly unsafe things like |
149 | define arbitrary drive geometry, move the beginning of data in a | 149 | define arbitrary drive geometry, move the beginning of data in a |
150 | partition, and similarly evil things. Unless you have a very good | 150 | partition, and similarly evil things. Unless you have a very good |
151 | reason you would be wise to leave this disabled. | 151 | reason you would be wise to leave this disabled. |
152 | 152 | ||
153 | config CONFIG_FREERAMDISK | 153 | config FREERAMDISK |
154 | bool "freeramdisk" | 154 | bool "freeramdisk" |
155 | default n | 155 | default n |
156 | help | 156 | help |
@@ -161,7 +161,7 @@ config CONFIG_FREERAMDISK | |||
161 | ramdisk. If you have no use for freeing memory from a ramdisk, leave | 161 | ramdisk. If you have no use for freeing memory from a ramdisk, leave |
162 | this disabled. | 162 | this disabled. |
163 | 163 | ||
164 | config CONFIG_FSCK_MINIX | 164 | config FSCK_MINIX |
165 | bool "fsck_minix" | 165 | bool "fsck_minix" |
166 | default n | 166 | default n |
167 | help | 167 | help |
@@ -172,7 +172,7 @@ config CONFIG_FSCK_MINIX | |||
172 | check for and attempt to repair any corruption that occurs to a minix | 172 | check for and attempt to repair any corruption that occurs to a minix |
173 | filesystem. | 173 | filesystem. |
174 | 174 | ||
175 | config CONFIG_MKFS_MINIX | 175 | config MKFS_MINIX |
176 | bool "mkfs_minix" | 176 | bool "mkfs_minix" |
177 | default n | 177 | default n |
178 | help | 178 | help |
@@ -181,18 +181,18 @@ config CONFIG_MKFS_MINIX | |||
181 | this utility will do the job for you. | 181 | this utility will do the job for you. |
182 | 182 | ||
183 | comment "Minix filesystem support" | 183 | comment "Minix filesystem support" |
184 | depends on CONFIG_FSCK_MINIX || CONFIG_MKFS_MINIX | 184 | depends on FSCK_MINIX || MKFS_MINIX |
185 | 185 | ||
186 | config CONFIG_FEATURE_MINIX2 | 186 | config FEATURE_MINIX2 |
187 | bool "Support Minix fs v2 (fsck_minix/mkfs_minix)" | 187 | bool "Support Minix fs v2 (fsck_minix/mkfs_minix)" |
188 | default y | 188 | default y |
189 | depends on CONFIG_FSCK_MINIX || CONFIG_MKFS_MINIX | 189 | depends on FSCK_MINIX || MKFS_MINIX |
190 | help | 190 | help |
191 | If you wish to be able to create version 2 minix filesystems, enable this. | 191 | If you wish to be able to create version 2 minix filesystems, enable this. |
192 | If you enabled 'mkfs_minix' then you almost certainly want to be using the | 192 | If you enabled 'mkfs_minix' then you almost certainly want to be using the |
193 | version 2 filesystem support. | 193 | version 2 filesystem support. |
194 | 194 | ||
195 | config CONFIG_GETOPT | 195 | config GETOPT |
196 | bool "getopt" | 196 | bool "getopt" |
197 | default n | 197 | default n |
198 | help | 198 | help |
@@ -203,14 +203,14 @@ config CONFIG_GETOPT | |||
203 | written by others, this utility may be for you. Most people will | 203 | written by others, this utility may be for you. Most people will |
204 | wisely leave this disabled. | 204 | wisely leave this disabled. |
205 | 205 | ||
206 | config CONFIG_HEXDUMP | 206 | config HEXDUMP |
207 | bool "hexdump" | 207 | bool "hexdump" |
208 | default n | 208 | default n |
209 | help | 209 | help |
210 | The hexdump utility is used to display binary data in a readable | 210 | The hexdump utility is used to display binary data in a readable |
211 | way that is comparable to the output from most hex editors. | 211 | way that is comparable to the output from most hex editors. |
212 | 212 | ||
213 | config CONFIG_HWCLOCK | 213 | config HWCLOCK |
214 | bool "hwclock" | 214 | bool "hwclock" |
215 | default n | 215 | default n |
216 | help | 216 | help |
@@ -219,19 +219,19 @@ config CONFIG_HWCLOCK | |||
219 | shutdown in the hardware clock, so the hardware will keep the | 219 | shutdown in the hardware clock, so the hardware will keep the |
220 | correct time when Linux is _not_ running. | 220 | correct time when Linux is _not_ running. |
221 | 221 | ||
222 | config CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS | 222 | config FEATURE_HWCLOCK_LONG_OPTIONS |
223 | bool "Support long options (--hctosys,...)" | 223 | bool "Support long options (--hctosys,...)" |
224 | default n | 224 | default n |
225 | depends on CONFIG_HWCLOCK && CONFIG_GETOPT_LONG | 225 | depends on HWCLOCK && GETOPT_LONG |
226 | help | 226 | help |
227 | By default, the hwclock utility only uses short options. If you | 227 | By default, the hwclock utility only uses short options. If you |
228 | are overly fond of its long options, such as --hctosys, --utc, etc) | 228 | are overly fond of its long options, such as --hctosys, --utc, etc) |
229 | then enable this option. | 229 | then enable this option. |
230 | 230 | ||
231 | config CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS | 231 | config FEATURE_HWCLOCK_ADJTIME_FHS |
232 | bool "Use FHS /var/lib/hwclock/adjtime" | 232 | bool "Use FHS /var/lib/hwclock/adjtime" |
233 | default y | 233 | default y |
234 | depends on CONFIG_HWCLOCK | 234 | depends on HWCLOCK |
235 | help | 235 | help |
236 | Starting with FHS 2.3, the adjtime state file is supposed to exist | 236 | Starting with FHS 2.3, the adjtime state file is supposed to exist |
237 | at /var/lib/hwclock/adjtime instead of /etc/adjtime. If you wish | 237 | at /var/lib/hwclock/adjtime instead of /etc/adjtime. If you wish |
@@ -240,24 +240,24 @@ config CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS | |||
240 | 240 | ||
241 | http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBHWCLOCKSTATEDIRECTORYFORHWCLO | 241 | http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBHWCLOCKSTATEDIRECTORYFORHWCLO |
242 | 242 | ||
243 | config CONFIG_IPCRM | 243 | config IPCRM |
244 | bool "ipcrm" | 244 | bool "ipcrm" |
245 | default n | 245 | default n |
246 | select CONFIG_FEATURE_SUID | 246 | select FEATURE_SUID |
247 | help | 247 | help |
248 | The ipcrm utility allows the removal of System V interprocess | 248 | The ipcrm utility allows the removal of System V interprocess |
249 | communication (IPC) objects and the associated data structures | 249 | communication (IPC) objects and the associated data structures |
250 | from the system. | 250 | from the system. |
251 | 251 | ||
252 | config CONFIG_IPCS | 252 | config IPCS |
253 | bool "ipcs" | 253 | bool "ipcs" |
254 | default n | 254 | default n |
255 | select CONFIG_FEATURE_SUID | 255 | select FEATURE_SUID |
256 | help | 256 | help |
257 | The ipcs utility is used to provide information on the currently | 257 | The ipcs utility is used to provide information on the currently |
258 | allocated System V interprocess (IPC) objects in the system. | 258 | allocated System V interprocess (IPC) objects in the system. |
259 | 259 | ||
260 | config CONFIG_LOSETUP | 260 | config LOSETUP |
261 | bool "losetup" | 261 | bool "losetup" |
262 | default n | 262 | default n |
263 | help | 263 | help |
@@ -265,7 +265,7 @@ config CONFIG_LOSETUP | |||
265 | file or block device, and to query the status of a loop device. This | 265 | file or block device, and to query the status of a loop device. This |
266 | version does not currently support enabling data encryption. | 266 | version does not currently support enabling data encryption. |
267 | 267 | ||
268 | config CONFIG_MDEV | 268 | config MDEV |
269 | bool "mdev" | 269 | bool "mdev" |
270 | default n | 270 | default n |
271 | help | 271 | help |
@@ -274,10 +274,10 @@ config CONFIG_MDEV | |||
274 | have it handle hotplug events afterwards. Device names are taken | 274 | have it handle hotplug events afterwards. Device names are taken |
275 | from sysfs. | 275 | from sysfs. |
276 | 276 | ||
277 | config CONFIG_FEATURE_MDEV_CONF | 277 | config FEATURE_MDEV_CONF |
278 | bool "Support /etc/mdev.conf" | 278 | bool "Support /etc/mdev.conf" |
279 | default n | 279 | default n |
280 | depends on CONFIG_MDEV | 280 | depends on MDEV |
281 | help | 281 | help |
282 | The mdev config file contains lines that look like: | 282 | The mdev config file contains lines that look like: |
283 | 283 | ||
@@ -289,10 +289,10 @@ config CONFIG_FEATURE_MDEV_CONF | |||
289 | entry is matched, devices are created with default 0:0 660. (Make | 289 | entry is matched, devices are created with default 0:0 660. (Make |
290 | the last line match .* to override this.) | 290 | the last line match .* to override this.) |
291 | 291 | ||
292 | config CONFIG_FEATURE_MDEV_EXEC | 292 | config FEATURE_MDEV_EXEC |
293 | bool "Support command execution at device addition/removal" | 293 | bool "Support command execution at device addition/removal" |
294 | default n | 294 | default n |
295 | depends on CONFIG_FEATURE_MDEV_CONF | 295 | depends on FEATURE_MDEV_CONF |
296 | help | 296 | help |
297 | This adds support for an optional field to /etc/mdev.conf, consisting | 297 | This adds support for an optional field to /etc/mdev.conf, consisting |
298 | of a special character and a command line to run after creating the | 298 | of a special character and a command line to run after creating the |
@@ -310,7 +310,7 @@ config CONFIG_FEATURE_MDEV_EXEC | |||
310 | Commands are executed via system() so you need /bin/sh, meaning you | 310 | Commands are executed via system() so you need /bin/sh, meaning you |
311 | probably want to select a default shell in the Shells menu. | 311 | probably want to select a default shell in the Shells menu. |
312 | 312 | ||
313 | config CONFIG_MKSWAP | 313 | config MKSWAP |
314 | bool "mkswap" | 314 | bool "mkswap" |
315 | default n | 315 | default n |
316 | help | 316 | help |
@@ -323,17 +323,17 @@ config CONFIG_MKSWAP | |||
323 | Once you have created swap space using 'mkswap' you need to enable | 323 | Once you have created swap space using 'mkswap' you need to enable |
324 | the swap space using the 'swapon' utility. | 324 | the swap space using the 'swapon' utility. |
325 | 325 | ||
326 | config CONFIG_FEATURE_MKSWAP_V0 | 326 | config FEATURE_MKSWAP_V0 |
327 | bool "version 0 support" | 327 | bool "version 0 support" |
328 | default n | 328 | default n |
329 | depends on CONFIG_MKSWAP | 329 | depends on MKSWAP |
330 | # depends on CONFIG_MKSWAP && CONFIG_DEPRECATED | 330 | # depends on MKSWAP && DEPRECATED |
331 | help | 331 | help |
332 | Enable support for the old v0 style. | 332 | Enable support for the old v0 style. |
333 | If your kernel is older than 2.1.117, then v0 support is the | 333 | If your kernel is older than 2.1.117, then v0 support is the |
334 | only option. | 334 | only option. |
335 | 335 | ||
336 | config CONFIG_MORE | 336 | config MORE |
337 | bool "more" | 337 | bool "more" |
338 | default n | 338 | default n |
339 | help | 339 | help |
@@ -343,10 +343,10 @@ config CONFIG_MORE | |||
343 | you will probably find this utility very helpful. If you don't have | 343 | you will probably find this utility very helpful. If you don't have |
344 | any need to reading text files, you can leave this disabled. | 344 | any need to reading text files, you can leave this disabled. |
345 | 345 | ||
346 | config CONFIG_FEATURE_USE_TERMIOS | 346 | config FEATURE_USE_TERMIOS |
347 | bool "Use termios to manipulate the screen" | 347 | bool "Use termios to manipulate the screen" |
348 | default y | 348 | default y |
349 | depends on CONFIG_MORE | 349 | depends on MORE |
350 | help | 350 | help |
351 | This option allows utilities such as 'more' and 'top' to determine | 351 | This option allows utilities such as 'more' and 'top' to determine |
352 | the size of the screen. If you leave this disabled, your utilities | 352 | the size of the screen. If you leave this disabled, your utilities |
@@ -354,7 +354,7 @@ config CONFIG_FEATURE_USE_TERMIOS | |||
354 | will be unable to determine the current screen size, and will be | 354 | will be unable to determine the current screen size, and will be |
355 | unable to move the cursor. | 355 | unable to move the cursor. |
356 | 356 | ||
357 | config CONFIG_MOUNT | 357 | config MOUNT |
358 | bool "mount" | 358 | bool "mount" |
359 | default n | 359 | default n |
360 | help | 360 | help |
@@ -365,23 +365,23 @@ config CONFIG_MOUNT | |||
365 | NFS filesystems. Most people using BusyBox will also want to enable | 365 | NFS filesystems. Most people using BusyBox will also want to enable |
366 | the 'mount' utility. | 366 | the 'mount' utility. |
367 | 367 | ||
368 | config CONFIG_FEATURE_MOUNT_NFS | 368 | config FEATURE_MOUNT_NFS |
369 | bool "Support mounting NFS file systems" | 369 | bool "Support mounting NFS file systems" |
370 | default n | 370 | default n |
371 | depends on CONFIG_MOUNT | 371 | depends on MOUNT |
372 | select CONFIG_FEATURE_SYSLOG | 372 | select FEATURE_SYSLOG |
373 | help | 373 | help |
374 | Enable mounting of NFS file systems. | 374 | Enable mounting of NFS file systems. |
375 | 375 | ||
376 | config CONFIG_FEATURE_MOUNT_CIFS | 376 | config FEATURE_MOUNT_CIFS |
377 | bool "Support mounting CIFS/SMB file systems" | 377 | bool "Support mounting CIFS/SMB file systems" |
378 | default n | 378 | default n |
379 | depends on CONFIG_MOUNT | 379 | depends on MOUNT |
380 | help | 380 | help |
381 | Enable support for samba mounts. | 381 | Enable support for samba mounts. |
382 | 382 | ||
383 | config CONFIG_FEATURE_MOUNT_FLAGS | 383 | config FEATURE_MOUNT_FLAGS |
384 | depends on CONFIG_MOUNT | 384 | depends on MOUNT |
385 | bool "Support lots of -o flags in mount" | 385 | bool "Support lots of -o flags in mount" |
386 | default y | 386 | default y |
387 | help | 387 | help |
@@ -390,14 +390,14 @@ config CONFIG_FEATURE_MOUNT_FLAGS | |||
390 | noatime, diratime, nodiratime, loud, bind, move, shared, slave, | 390 | noatime, diratime, nodiratime, loud, bind, move, shared, slave, |
391 | private, unbindable, rshared, rslave, rprivate, and runbindable. | 391 | private, unbindable, rshared, rslave, rprivate, and runbindable. |
392 | 392 | ||
393 | config CONFIG_FEATURE_MOUNT_FSTAB | 393 | config FEATURE_MOUNT_FSTAB |
394 | depends on CONFIG_MOUNT | 394 | depends on MOUNT |
395 | bool "Support /etc/fstab and -a" | 395 | bool "Support /etc/fstab and -a" |
396 | default y | 396 | default y |
397 | help | 397 | help |
398 | Support mount all and looking for files in /etc/fstab. | 398 | Support mount all and looking for files in /etc/fstab. |
399 | 399 | ||
400 | config CONFIG_PIVOT_ROOT | 400 | config PIVOT_ROOT |
401 | bool "pivot_root" | 401 | bool "pivot_root" |
402 | default n | 402 | default n |
403 | help | 403 | help |
@@ -409,7 +409,7 @@ config CONFIG_PIVOT_ROOT | |||
409 | Note: This is for initrd in linux 2.4. Under initramfs (introduced | 409 | Note: This is for initrd in linux 2.4. Under initramfs (introduced |
410 | in linux 2.6) use switch_root instead. | 410 | in linux 2.6) use switch_root instead. |
411 | 411 | ||
412 | config CONFIG_RDATE | 412 | config RDATE |
413 | bool "rdate" | 413 | bool "rdate" |
414 | default n | 414 | default n |
415 | help | 415 | help |
@@ -418,13 +418,13 @@ config CONFIG_RDATE | |||
418 | the RFC868 protocol, which is built into the inetd daemon on most | 418 | the RFC868 protocol, which is built into the inetd daemon on most |
419 | systems. | 419 | systems. |
420 | 420 | ||
421 | config CONFIG_READPROFILE | 421 | config READPROFILE |
422 | bool "readprofile" | 422 | bool "readprofile" |
423 | default n | 423 | default n |
424 | help | 424 | help |
425 | This allows you to parse /proc/profile for basic profiling. | 425 | This allows you to parse /proc/profile for basic profiling. |
426 | 426 | ||
427 | config CONFIG_SETARCH | 427 | config SETARCH |
428 | bool "setarch" | 428 | bool "setarch" |
429 | default n | 429 | default n |
430 | help | 430 | help |
@@ -433,7 +433,7 @@ config CONFIG_SETARCH | |||
433 | this util on a system that supports both 64bit and 32bit userland | 433 | this util on a system that supports both 64bit and 32bit userland |
434 | (like amd64/x86, ppc64/ppc, sparc64/sparc, etc...). | 434 | (like amd64/x86, ppc64/ppc, sparc64/sparc, etc...). |
435 | 435 | ||
436 | config CONFIG_SWAPONOFF | 436 | config SWAPONOFF |
437 | bool "swaponoff" | 437 | bool "swaponoff" |
438 | default n | 438 | default n |
439 | help | 439 | help |
@@ -444,7 +444,7 @@ config CONFIG_SWAPONOFF | |||
444 | space. If you are not using any swap space, you can leave this | 444 | space. If you are not using any swap space, you can leave this |
445 | option disabled. | 445 | option disabled. |
446 | 446 | ||
447 | config CONFIG_SWITCH_ROOT | 447 | config SWITCH_ROOT |
448 | bool "switch_root" | 448 | bool "switch_root" |
449 | default n | 449 | default n |
450 | help | 450 | help |
@@ -463,7 +463,7 @@ config CONFIG_SWITCH_ROOT | |||
463 | and ending point for searching through the kernel's doubly linked | 463 | and ending point for searching through the kernel's doubly linked |
464 | list of active mount points. That's why. | 464 | list of active mount points. That's why. |
465 | 465 | ||
466 | config CONFIG_UMOUNT | 466 | config UMOUNT |
467 | bool "umount" | 467 | bool "umount" |
468 | default n | 468 | default n |
469 | help | 469 | help |
@@ -472,20 +472,20 @@ config CONFIG_UMOUNT | |||
472 | the tool to use. If you enabled the 'mount' utility, you almost certainly | 472 | the tool to use. If you enabled the 'mount' utility, you almost certainly |
473 | also want to enable 'umount'. | 473 | also want to enable 'umount'. |
474 | 474 | ||
475 | config CONFIG_FEATURE_UMOUNT_ALL | 475 | config FEATURE_UMOUNT_ALL |
476 | bool "umount -a option" | 476 | bool "umount -a option" |
477 | default n | 477 | default n |
478 | depends on CONFIG_UMOUNT | 478 | depends on UMOUNT |
479 | help | 479 | help |
480 | Support -a option to unmount all currently mounted filesystems. | 480 | Support -a option to unmount all currently mounted filesystems. |
481 | 481 | ||
482 | comment "Common options for mount/umount" | 482 | comment "Common options for mount/umount" |
483 | depends on CONFIG_MOUNT || CONFIG_UMOUNT | 483 | depends on MOUNT || UMOUNT |
484 | 484 | ||
485 | config CONFIG_FEATURE_MOUNT_LOOP | 485 | config FEATURE_MOUNT_LOOP |
486 | bool "Support loopback mounts" | 486 | bool "Support loopback mounts" |
487 | default n | 487 | default n |
488 | depends on CONFIG_MOUNT || CONFIG_UMOUNT | 488 | depends on MOUNT || UMOUNT |
489 | help | 489 | help |
490 | Enabling this feature allows automatic mounting of files (containing | 490 | Enabling this feature allows automatic mounting of files (containing |
491 | filesystem images) via the linux kernel's loopback devices. The mount | 491 | filesystem images) via the linux kernel's loopback devices. The mount |
@@ -498,10 +498,10 @@ config CONFIG_FEATURE_MOUNT_LOOP | |||
498 | specify an offset or cryptographic options to the loopback device. | 498 | specify an offset or cryptographic options to the loopback device. |
499 | (If you don't want umount to free the loop device, use "umount -D".) | 499 | (If you don't want umount to free the loop device, use "umount -D".) |
500 | 500 | ||
501 | config CONFIG_FEATURE_MTAB_SUPPORT | 501 | config FEATURE_MTAB_SUPPORT |
502 | bool "Support for the old /etc/mtab file" | 502 | bool "Support for the old /etc/mtab file" |
503 | default n | 503 | default n |
504 | depends on CONFIG_MOUNT || CONFIG_UMOUNT | 504 | depends on MOUNT || UMOUNT |
505 | help | 505 | help |
506 | Historically, Unix systems kept track of the currently mounted | 506 | Historically, Unix systems kept track of the currently mounted |
507 | partitions in the file "/etc/mtab". These days, the kernel exports | 507 | partitions in the file "/etc/mtab". These days, the kernel exports |
diff --git a/util-linux/Kbuild b/util-linux/Kbuild new file mode 100644 index 000000000..cc1d0e05d --- /dev/null +++ b/util-linux/Kbuild | |||
@@ -0,0 +1,32 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_DMESG) +=dmesg.o | ||
9 | lib-$(CONFIG_FBSET) +=fbset.o | ||
10 | lib-$(CONFIG_FDFLUSH) +=freeramdisk.o | ||
11 | lib-$(CONFIG_FDFORMAT) +=fdformat.o | ||
12 | lib-$(CONFIG_FDISK) +=fdisk.o | ||
13 | lib-$(CONFIG_FREERAMDISK) +=freeramdisk.o | ||
14 | lib-$(CONFIG_FSCK_MINIX) +=fsck_minix.o | ||
15 | lib-$(CONFIG_GETOPT) +=getopt.o | ||
16 | lib-$(CONFIG_HEXDUMP) +=hexdump.o | ||
17 | lib-$(CONFIG_HWCLOCK) +=hwclock.o | ||
18 | lib-$(CONFIG_IPCRM) +=ipcrm.o | ||
19 | lib-$(CONFIG_IPCS) +=ipcs.o | ||
20 | lib-$(CONFIG_LOSETUP) +=losetup.o | ||
21 | lib-$(CONFIG_MDEV) +=mdev.o | ||
22 | lib-$(CONFIG_MKFS_MINIX) +=mkfs_minix.o | ||
23 | lib-$(CONFIG_MKSWAP) +=mkswap.o | ||
24 | lib-$(CONFIG_MORE) +=more.o | ||
25 | lib-$(CONFIG_MOUNT) +=mount.o | ||
26 | lib-$(CONFIG_PIVOT_ROOT) +=pivot_root.o | ||
27 | lib-$(CONFIG_RDATE) +=rdate.o | ||
28 | lib-$(CONFIG_READPROFILE) +=readprofile.o | ||
29 | lib-$(CONFIG_SETARCH) +=setarch.o | ||
30 | lib-$(CONFIG_SWAPONOFF) +=swaponoff.o | ||
31 | lib-$(CONFIG_SWITCH_ROOT) +=switch_root.o | ||
32 | lib-$(CONFIG_UMOUNT) +=umount.o | ||
diff --git a/util-linux/Makefile b/util-linux/Makefile deleted file mode 100644 index 9a53470a4..000000000 --- a/util-linux/Makefile +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/util-linux | ||
14 | UTILLINUX_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
22 | rm -f *.o *.a $(AR_TARGET) | ||
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in deleted file mode 100644 index 3d6c96a35..000000000 --- a/util-linux/Makefile.in +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | UTILLINUX_AR:=util-linux.a | ||
8 | ifndef $(UTILLINUX_DIR) | ||
9 | UTILLINUX_DIR:=$(top_builddir)/util-linux/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/util-linux | ||
12 | |||
13 | UTILLINUX-y:= | ||
14 | UTILLINUX-$(CONFIG_DMESG) +=dmesg.o | ||
15 | UTILLINUX-$(CONFIG_FBSET) +=fbset.o | ||
16 | UTILLINUX-$(CONFIG_FDFLUSH) +=freeramdisk.o | ||
17 | UTILLINUX-$(CONFIG_FDFORMAT) +=fdformat.o | ||
18 | UTILLINUX-$(CONFIG_FDISK) +=fdisk.o | ||
19 | UTILLINUX-$(CONFIG_FREERAMDISK) +=freeramdisk.o | ||
20 | UTILLINUX-$(CONFIG_FSCK_MINIX) +=fsck_minix.o | ||
21 | UTILLINUX-$(CONFIG_GETOPT) +=getopt.o | ||
22 | UTILLINUX-$(CONFIG_HEXDUMP) +=hexdump.o | ||
23 | UTILLINUX-$(CONFIG_HWCLOCK) +=hwclock.o | ||
24 | UTILLINUX-$(CONFIG_IPCRM) +=ipcrm.o | ||
25 | UTILLINUX-$(CONFIG_IPCS) +=ipcs.o | ||
26 | UTILLINUX-$(CONFIG_LOSETUP) +=losetup.o | ||
27 | UTILLINUX-$(CONFIG_MDEV) +=mdev.o | ||
28 | UTILLINUX-$(CONFIG_MKFS_MINIX) +=mkfs_minix.o | ||
29 | UTILLINUX-$(CONFIG_MKSWAP) +=mkswap.o | ||
30 | UTILLINUX-$(CONFIG_MORE) +=more.o | ||
31 | UTILLINUX-$(CONFIG_MOUNT) +=mount.o | ||
32 | UTILLINUX-$(CONFIG_PIVOT_ROOT) +=pivot_root.o | ||
33 | UTILLINUX-$(CONFIG_RDATE) +=rdate.o | ||
34 | UTILLINUX-$(CONFIG_READPROFILE) +=readprofile.o | ||
35 | UTILLINUX-$(CONFIG_SETARCH) +=setarch.o | ||
36 | UTILLINUX-$(CONFIG_SWAPONOFF) +=swaponoff.o | ||
37 | UTILLINUX-$(CONFIG_SWITCH_ROOT) +=switch_root.o | ||
38 | UTILLINUX-$(CONFIG_UMOUNT) +=umount.o | ||
39 | |||
40 | UTILLINUX-y:=$(sort $(UTILLINUX-y)) | ||
41 | |||
42 | ifneq ($(strip $(UTILLINUX-y)),) | ||
43 | libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR) | ||
44 | endif | ||
45 | |||
46 | UTILLINUX_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(UTILLINUX-y)) | ||
47 | UTILLINUX_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
48 | APPLET_SRC-y+=$(UTILLINUX_SRC-y) | ||
49 | APPLET_SRC-a+=$(UTILLINUX_SRC-a) | ||
50 | |||
51 | $(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y)) | ||
52 | $(do_ar) | ||
53 | |||
54 | $(UTILLINUX_DIR)%.o: $(srcdir)/%.c | ||
55 | $(compile.c) | ||
56 | |||
57 | ifneq ($(strip $(CONFIG_LFS)),y) | ||
58 | ifeq ($(strip $(FDISK_SUPPORT_LARGE_DISKS)),y) | ||
59 | $(UTILLINUX_DIR)fdisk.o: $(srcdir)/fdisk.c | ||
60 | $(compile.c) -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 | ||
61 | endif | ||
62 | endif | ||