aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/Config.in42
-rw-r--r--procps/Kbuild16
-rw-r--r--procps/Makefile23
-rw-r--r--procps/Makefile.in37
4 files changed, 37 insertions, 81 deletions
diff --git a/procps/Config.in b/procps/Config.in
index 2d4ad3bd4..20d5f9bf2 100644
--- a/procps/Config.in
+++ b/procps/Config.in
@@ -5,7 +5,7 @@
5 5
6menu "Process Utilities" 6menu "Process Utilities"
7 7
8config CONFIG_FREE 8config FREE
9 bool "free" 9 bool "free"
10 default n 10 default n
11 help 11 help
@@ -13,7 +13,7 @@ config CONFIG_FREE
13 memory in the system, as well as the buffers used by the kernel. 13 memory in the system, as well as the buffers used by the kernel.
14 The shared memory column should be ignored; it is obsolete. 14 The shared memory column should be ignored; it is obsolete.
15 15
16config CONFIG_FUSER 16config FUSER
17 bool "fuser" 17 bool "fuser"
18 default n 18 default n
19 help 19 help
@@ -21,7 +21,7 @@ config CONFIG_FUSER
21 file open. fuser can also list all PIDs that have a given network 21 file open. fuser can also list all PIDs that have a given network
22 (TCP or UDP) port open. 22 (TCP or UDP) port open.
23 23
24config CONFIG_KILL 24config KILL
25 bool "kill" 25 bool "kill"
26 default n 26 default n
27 help 27 help
@@ -29,86 +29,86 @@ config CONFIG_KILL
29 process or process group. If no signal is specified, the TERM 29 process or process group. If no signal is specified, the TERM
30 signal is sent. 30 signal is sent.
31 31
32config CONFIG_KILLALL 32config KILLALL
33 bool "killall" 33 bool "killall"
34 default n 34 default n
35 depends on CONFIG_KILL 35 depends on KILL
36 help 36 help
37 killall sends a signal to all processes running any of the 37 killall sends a signal to all processes running any of the
38 specified commands. If no signal name is specified, SIGTERM is 38 specified commands. If no signal name is specified, SIGTERM is
39 sent. 39 sent.
40 40
41config CONFIG_KILLALL5 41config KILLALL5
42 bool "killall5" 42 bool "killall5"
43 default n 43 default n
44 depends on CONFIG_KILL 44 depends on KILL
45 45
46config CONFIG_PIDOF 46config PIDOF
47 bool "pidof" 47 bool "pidof"
48 default n 48 default n
49 help 49 help
50 Pidof finds the process id's (pids) of the named programs. It prints 50 Pidof finds the process id's (pids) of the named programs. It prints
51 those id's on the standard output. 51 those id's on the standard output.
52 52
53config CONFIG_FEATURE_PIDOF_SINGLE 53config FEATURE_PIDOF_SINGLE
54 bool "Enable argument for single shot (-s)" 54 bool "Enable argument for single shot (-s)"
55 default n 55 default n
56 depends on CONFIG_PIDOF 56 depends on PIDOF
57 help 57 help
58 Support argument '-s' for returning only the first pid found. 58 Support argument '-s' for returning only the first pid found.
59 59
60config CONFIG_FEATURE_PIDOF_OMIT 60config FEATURE_PIDOF_OMIT
61 bool "Enable argument for omitting pids (-o)" 61 bool "Enable argument for omitting pids (-o)"
62 default n 62 default n
63 depends on CONFIG_PIDOF 63 depends on PIDOF
64 help 64 help
65 Support argument '-o' for omitting the given pids in output. 65 Support argument '-o' for omitting the given pids in output.
66 The special pid %PPID can be used to name the parent process 66 The special pid %PPID can be used to name the parent process
67 of the pidof, in other words the calling shell or shell script. 67 of the pidof, in other words the calling shell or shell script.
68 68
69config CONFIG_PS 69config PS
70 bool "ps" 70 bool "ps"
71 default n 71 default n
72 help 72 help
73 ps gives a snapshot of the current processes. 73 ps gives a snapshot of the current processes.
74 74
75config CONFIG_FEATURE_PS_WIDE 75config FEATURE_PS_WIDE
76 bool "Enable argument for wide output (-w)" 76 bool "Enable argument for wide output (-w)"
77 default n 77 default n
78 depends on CONFIG_PS 78 depends on PS
79 help 79 help
80 Support argument 'w' for wide output. 80 Support argument 'w' for wide output.
81 If given once, 132 chars are printed and given more than 81 If given once, 132 chars are printed and given more than
82 one, the length is unlimited. 82 one, the length is unlimited.
83 83
84config CONFIG_RENICE 84config RENICE
85 bool "renice" 85 bool "renice"
86 default n 86 default n
87 help 87 help
88 Renice alters the scheduling priority of one or more running 88 Renice alters the scheduling priority of one or more running
89 processes. 89 processes.
90 90
91config CONFIG_BB_SYSCTL 91config BB_SYSCTL
92 bool "sysctl" 92 bool "sysctl"
93 default n 93 default n
94 help 94 help
95 Configure kernel parameters at runtime. 95 Configure kernel parameters at runtime.
96 96
97config CONFIG_TOP 97config TOP
98 bool "top" 98 bool "top"
99 default n 99 default n
100 help 100 help
101 The top program provides a dynamic real-time view of a running 101 The top program provides a dynamic real-time view of a running
102 system. 102 system.
103 103
104config CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE 104config FEATURE_TOP_CPU_USAGE_PERCENTAGE
105 bool "Support showing CPU usage percentage (add 2k bytes)" 105 bool "Support showing CPU usage percentage (add 2k bytes)"
106 default y 106 default y
107 depends on CONFIG_TOP 107 depends on TOP
108 help 108 help
109 Make top display CPU usage. 109 Make top display CPU usage.
110 110
111config CONFIG_UPTIME 111config UPTIME
112 bool "uptime" 112 bool "uptime"
113 default n 113 default n
114 help 114 help
diff --git a/procps/Kbuild b/procps/Kbuild
new file mode 100644
index 000000000..6a9a86637
--- /dev/null
+++ b/procps/Kbuild
@@ -0,0 +1,16 @@
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_FREE) += free.o
9lib-$(CONFIG_KILL) += kill.o
10lib-$(CONFIG_PIDOF) += pidof.o
11lib-$(CONFIG_PS) += ps.o
12lib-$(CONFIG_RENICE) += renice.o
13lib-$(CONFIG_BB_SYSCTL) += sysctl.o
14lib-$(CONFIG_TOP) += top.o
15lib-$(CONFIG_UPTIME) += uptime.o
16lib-$(CONFIG_FUSER) += fuser.o
diff --git a/procps/Makefile b/procps/Makefile
deleted file mode 100644
index 1db6ffa58..000000000
--- a/procps/Makefile
+++ /dev/null
@@ -1,23 +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)/procps
14PROCPS_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)
23
diff --git a/procps/Makefile.in b/procps/Makefile.in
deleted file mode 100644
index 261c49b02..000000000
--- a/procps/Makefile.in
+++ /dev/null
@@ -1,37 +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
7PROCPS_AR:=procps.a
8ifndef $(PROCPS_DIR)
9PROCPS_DIR:=$(top_builddir)/procps/
10endif
11srcdir=$(top_srcdir)/procps
12
13PROCPS-y:=
14PROCPS-$(CONFIG_FREE) += free.o
15PROCPS-$(CONFIG_KILL) += kill.o
16PROCPS-$(CONFIG_PIDOF) += pidof.o
17PROCPS-$(CONFIG_PS) += ps.o
18PROCPS-$(CONFIG_RENICE) += renice.o
19PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o
20PROCPS-$(CONFIG_TOP) += top.o
21PROCPS-$(CONFIG_UPTIME) += uptime.o
22PROCPS-$(CONFIG_FUSER) += fuser.o
23
24ifneq ($(strip $(PROCPS-y)),)
25libraries-y+=$(PROCPS_DIR)$(PROCPS_AR)
26endif
27
28PROCPS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(PROCPS-y))
29PROCPS_SRC-a:=$(wildcard $(srcdir)/*.c)
30APPLET_SRC-y+=$(PROCPS_SRC-y)
31APPLET_SRC-a+=$(PROCPS_SRC-a)
32
33$(PROCPS_DIR)$(PROCPS_AR): $(patsubst %,$(PROCPS_DIR)%, $(PROCPS-y))
34 $(do_ar)
35
36$(PROCPS_DIR)%.o: $(srcdir)/%.c
37 $(compile.c)