diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/Config.in | 42 | ||||
-rw-r--r-- | procps/Kbuild | 16 | ||||
-rw-r--r-- | procps/Makefile | 23 | ||||
-rw-r--r-- | procps/Makefile.in | 37 |
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 | ||
6 | menu "Process Utilities" | 6 | menu "Process Utilities" |
7 | 7 | ||
8 | config CONFIG_FREE | 8 | config 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 | ||
16 | config CONFIG_FUSER | 16 | config 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 | ||
24 | config CONFIG_KILL | 24 | config 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 | ||
32 | config CONFIG_KILLALL | 32 | config 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 | ||
41 | config CONFIG_KILLALL5 | 41 | config KILLALL5 |
42 | bool "killall5" | 42 | bool "killall5" |
43 | default n | 43 | default n |
44 | depends on CONFIG_KILL | 44 | depends on KILL |
45 | 45 | ||
46 | config CONFIG_PIDOF | 46 | config 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 | ||
53 | config CONFIG_FEATURE_PIDOF_SINGLE | 53 | config 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 | ||
60 | config CONFIG_FEATURE_PIDOF_OMIT | 60 | config 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 | ||
69 | config CONFIG_PS | 69 | config 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 | ||
75 | config CONFIG_FEATURE_PS_WIDE | 75 | config 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 | ||
84 | config CONFIG_RENICE | 84 | config 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 | ||
91 | config CONFIG_BB_SYSCTL | 91 | config 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 | ||
97 | config CONFIG_TOP | 97 | config 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 | ||
104 | config CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE | 104 | config 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 | ||
111 | config CONFIG_UPTIME | 111 | config 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 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_FREE) += free.o | ||
9 | lib-$(CONFIG_KILL) += kill.o | ||
10 | lib-$(CONFIG_PIDOF) += pidof.o | ||
11 | lib-$(CONFIG_PS) += ps.o | ||
12 | lib-$(CONFIG_RENICE) += renice.o | ||
13 | lib-$(CONFIG_BB_SYSCTL) += sysctl.o | ||
14 | lib-$(CONFIG_TOP) += top.o | ||
15 | lib-$(CONFIG_UPTIME) += uptime.o | ||
16 | lib-$(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 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/procps | ||
14 | PROCPS_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) | ||
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 | |||
7 | PROCPS_AR:=procps.a | ||
8 | ifndef $(PROCPS_DIR) | ||
9 | PROCPS_DIR:=$(top_builddir)/procps/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/procps | ||
12 | |||
13 | PROCPS-y:= | ||
14 | PROCPS-$(CONFIG_FREE) += free.o | ||
15 | PROCPS-$(CONFIG_KILL) += kill.o | ||
16 | PROCPS-$(CONFIG_PIDOF) += pidof.o | ||
17 | PROCPS-$(CONFIG_PS) += ps.o | ||
18 | PROCPS-$(CONFIG_RENICE) += renice.o | ||
19 | PROCPS-$(CONFIG_BB_SYSCTL) += sysctl.o | ||
20 | PROCPS-$(CONFIG_TOP) += top.o | ||
21 | PROCPS-$(CONFIG_UPTIME) += uptime.o | ||
22 | PROCPS-$(CONFIG_FUSER) += fuser.o | ||
23 | |||
24 | ifneq ($(strip $(PROCPS-y)),) | ||
25 | libraries-y+=$(PROCPS_DIR)$(PROCPS_AR) | ||
26 | endif | ||
27 | |||
28 | PROCPS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(PROCPS-y)) | ||
29 | PROCPS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
30 | APPLET_SRC-y+=$(PROCPS_SRC-y) | ||
31 | APPLET_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) | ||