aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /util-linux
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-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.in156
-rw-r--r--util-linux/Kbuild32
-rw-r--r--util-linux/Makefile22
-rw-r--r--util-linux/Makefile.in62
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
6menu "Linux System Utilities" 6menu "Linux System Utilities"
7 7
8config CONFIG_DMESG 8config 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
20config CONFIG_FEATURE_DMESG_PRETTY 20config 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
40config CONFIG_FBSET 40config 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
49config CONFIG_FEATURE_FBSET_FANCY 49config 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
59config CONFIG_FEATURE_FBSET_READMODE 59config 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
68config CONFIG_FDFLUSH 68config 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
80config CONFIG_FDFORMAT 80config 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
86config CONFIG_FDISK 86config FDISK
87 bool "fdisk" 87 bool "fdisk"
88 default n 88 default n
89 help 89 help
@@ -95,62 +95,62 @@ config CONFIG_FDISK
95config FDISK_SUPPORT_LARGE_DISKS 95config 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
102config CONFIG_FEATURE_FDISK_WRITABLE 102config 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
111config CONFIG_FEATURE_AIX_LABEL 111config 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
119config CONFIG_FEATURE_SGI_LABEL 119config 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
127config CONFIG_FEATURE_SUN_LABEL 127config 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
135config CONFIG_FEATURE_OSF_LABEL 135config 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
143config CONFIG_FEATURE_FDISK_ADVANCED 143config 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
153config CONFIG_FREERAMDISK 153config 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
164config CONFIG_FSCK_MINIX 164config 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
175config CONFIG_MKFS_MINIX 175config 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
183comment "Minix filesystem support" 183comment "Minix filesystem support"
184 depends on CONFIG_FSCK_MINIX || CONFIG_MKFS_MINIX 184 depends on FSCK_MINIX || MKFS_MINIX
185 185
186config CONFIG_FEATURE_MINIX2 186config 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
195config CONFIG_GETOPT 195config 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
206config CONFIG_HEXDUMP 206config 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
213config CONFIG_HWCLOCK 213config 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
222config CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS 222config 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
231config CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS 231config 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
243config CONFIG_IPCRM 243config 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
252config CONFIG_IPCS 252config 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
260config CONFIG_LOSETUP 260config 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
268config CONFIG_MDEV 268config 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
277config CONFIG_FEATURE_MDEV_CONF 277config 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
292config CONFIG_FEATURE_MDEV_EXEC 292config 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
313config CONFIG_MKSWAP 313config 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
326config CONFIG_FEATURE_MKSWAP_V0 326config 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
336config CONFIG_MORE 336config 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
346config CONFIG_FEATURE_USE_TERMIOS 346config 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
357config CONFIG_MOUNT 357config 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
368config CONFIG_FEATURE_MOUNT_NFS 368config 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
376config CONFIG_FEATURE_MOUNT_CIFS 376config 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
383config CONFIG_FEATURE_MOUNT_FLAGS 383config 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
393config CONFIG_FEATURE_MOUNT_FSTAB 393config 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
400config CONFIG_PIVOT_ROOT 400config 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
412config CONFIG_RDATE 412config 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
421config CONFIG_READPROFILE 421config 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
427config CONFIG_SETARCH 427config 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
436config CONFIG_SWAPONOFF 436config 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
447config CONFIG_SWITCH_ROOT 447config 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
466config CONFIG_UMOUNT 466config 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
475config CONFIG_FEATURE_UMOUNT_ALL 475config 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
482comment "Common options for mount/umount" 482comment "Common options for mount/umount"
483 depends on CONFIG_MOUNT || CONFIG_UMOUNT 483 depends on MOUNT || UMOUNT
484 484
485config CONFIG_FEATURE_MOUNT_LOOP 485config 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
501config CONFIG_FEATURE_MTAB_SUPPORT 501config 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
7lib-y:=
8lib-$(CONFIG_DMESG) +=dmesg.o
9lib-$(CONFIG_FBSET) +=fbset.o
10lib-$(CONFIG_FDFLUSH) +=freeramdisk.o
11lib-$(CONFIG_FDFORMAT) +=fdformat.o
12lib-$(CONFIG_FDISK) +=fdisk.o
13lib-$(CONFIG_FREERAMDISK) +=freeramdisk.o
14lib-$(CONFIG_FSCK_MINIX) +=fsck_minix.o
15lib-$(CONFIG_GETOPT) +=getopt.o
16lib-$(CONFIG_HEXDUMP) +=hexdump.o
17lib-$(CONFIG_HWCLOCK) +=hwclock.o
18lib-$(CONFIG_IPCRM) +=ipcrm.o
19lib-$(CONFIG_IPCS) +=ipcs.o
20lib-$(CONFIG_LOSETUP) +=losetup.o
21lib-$(CONFIG_MDEV) +=mdev.o
22lib-$(CONFIG_MKFS_MINIX) +=mkfs_minix.o
23lib-$(CONFIG_MKSWAP) +=mkswap.o
24lib-$(CONFIG_MORE) +=more.o
25lib-$(CONFIG_MOUNT) +=mount.o
26lib-$(CONFIG_PIVOT_ROOT) +=pivot_root.o
27lib-$(CONFIG_RDATE) +=rdate.o
28lib-$(CONFIG_READPROFILE) +=readprofile.o
29lib-$(CONFIG_SETARCH) +=setarch.o
30lib-$(CONFIG_SWAPONOFF) +=swaponoff.o
31lib-$(CONFIG_SWITCH_ROOT) +=switch_root.o
32lib-$(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
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/util-linux
14UTILLINUX_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
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
7UTILLINUX_AR:=util-linux.a
8ifndef $(UTILLINUX_DIR)
9UTILLINUX_DIR:=$(top_builddir)/util-linux/
10endif
11srcdir=$(top_srcdir)/util-linux
12
13UTILLINUX-y:=
14UTILLINUX-$(CONFIG_DMESG) +=dmesg.o
15UTILLINUX-$(CONFIG_FBSET) +=fbset.o
16UTILLINUX-$(CONFIG_FDFLUSH) +=freeramdisk.o
17UTILLINUX-$(CONFIG_FDFORMAT) +=fdformat.o
18UTILLINUX-$(CONFIG_FDISK) +=fdisk.o
19UTILLINUX-$(CONFIG_FREERAMDISK) +=freeramdisk.o
20UTILLINUX-$(CONFIG_FSCK_MINIX) +=fsck_minix.o
21UTILLINUX-$(CONFIG_GETOPT) +=getopt.o
22UTILLINUX-$(CONFIG_HEXDUMP) +=hexdump.o
23UTILLINUX-$(CONFIG_HWCLOCK) +=hwclock.o
24UTILLINUX-$(CONFIG_IPCRM) +=ipcrm.o
25UTILLINUX-$(CONFIG_IPCS) +=ipcs.o
26UTILLINUX-$(CONFIG_LOSETUP) +=losetup.o
27UTILLINUX-$(CONFIG_MDEV) +=mdev.o
28UTILLINUX-$(CONFIG_MKFS_MINIX) +=mkfs_minix.o
29UTILLINUX-$(CONFIG_MKSWAP) +=mkswap.o
30UTILLINUX-$(CONFIG_MORE) +=more.o
31UTILLINUX-$(CONFIG_MOUNT) +=mount.o
32UTILLINUX-$(CONFIG_PIVOT_ROOT) +=pivot_root.o
33UTILLINUX-$(CONFIG_RDATE) +=rdate.o
34UTILLINUX-$(CONFIG_READPROFILE) +=readprofile.o
35UTILLINUX-$(CONFIG_SETARCH) +=setarch.o
36UTILLINUX-$(CONFIG_SWAPONOFF) +=swaponoff.o
37UTILLINUX-$(CONFIG_SWITCH_ROOT) +=switch_root.o
38UTILLINUX-$(CONFIG_UMOUNT) +=umount.o
39
40UTILLINUX-y:=$(sort $(UTILLINUX-y))
41
42ifneq ($(strip $(UTILLINUX-y)),)
43libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
44endif
45
46UTILLINUX_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(UTILLINUX-y))
47UTILLINUX_SRC-a:=$(wildcard $(srcdir)/*.c)
48APPLET_SRC-y+=$(UTILLINUX_SRC-y)
49APPLET_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
57ifneq ($(strip $(CONFIG_LFS)),y)
58ifeq ($(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
61endif
62endif