aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/new-applet-HOWTO.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt
index 2f237564d..8a825b998 100644
--- a/docs/new-applet-HOWTO.txt
+++ b/docs/new-applet-HOWTO.txt
@@ -99,14 +99,14 @@ int function(char *a)
99----end example code------ 99----end example code------
100 100
101Add <function_name>.o in the right alphabetically sorted place 101Add <function_name>.o in the right alphabetically sorted place
102in libbb/Kbuild. You should look at the conditional part of 102in libbb/Kbuild.src. You should look at the conditional part of
103libbb/Kbuild aswell. 103libbb/Kbuild.src as well.
104 104
105You should also try to find a suitable place in include/libbb.h for 105You should also try to find a suitable place in include/libbb.h for
106the function declaration. If not, add it somewhere anyway, with or without 106the function declaration. If not, add it somewhere anyway, with or without
107ifdefs to include or not. 107ifdefs to include or not.
108 108
109You can look at libbb/Config.in and try to find out if the function is 109You can look at libbb/Config.src and try to find out if the function is
110tunable and add it there if it is. 110tunable and add it there if it is.
111 111
112 112
@@ -118,11 +118,11 @@ Find the appropriate directory for your new applet.
118Make sure you find the appropriate places in the files, the applets are 118Make sure you find the appropriate places in the files, the applets are
119sorted alphabetically. 119sorted alphabetically.
120 120
121Add the applet to Kbuild in the chosen directory: 121Add the applet to Kbuild.src in the chosen directory:
122 122
123lib-$(CONFIG_MU) += mu.o 123lib-$(CONFIG_MU) += mu.o
124 124
125Add the applet to Config.in in the chosen directory: 125Add the applet to Config.src in the chosen directory:
126 126
127config MU 127config MU
128 bool "MU" 128 bool "MU"
@@ -134,7 +134,7 @@ config MU
134Usage String(s) 134Usage String(s)
135--------------- 135---------------
136 136
137Next, add usage information for you applet to include/usage.h. 137Next, add usage information for you applet to include/usage.src.h.
138This should look like the following: 138This should look like the following:
139 139
140 #define mu_trivial_usage \ 140 #define mu_trivial_usage \
@@ -149,17 +149,17 @@ This should look like the following:
149If your program supports flags, the flags should be mentioned on the first 149If your program supports flags, the flags should be mentioned on the first
150line (-[abcde]) and a detailed description of each flag should go in the 150line (-[abcde]) and a detailed description of each flag should go in the
151mu_full_usage section, one flag per line. (Numerous examples of this 151mu_full_usage section, one flag per line. (Numerous examples of this
152currently exist in usage.h.) 152currently exist in usage.src.h.)
153 153
154 154
155Header Files 155Header Files
156------------ 156------------
157 157
158Next, add an entry to include/applets.h. Be *sure* to keep the list 158Next, add an entry to include/applets.src.h. Be *sure* to keep the list
159in alphabetical order, or else it will break the binary-search lookup 159in alphabetical order, or else it will break the binary-search lookup
160algorithm in busybox.c and the Gods of BusyBox smite you. Yea, verily: 160algorithm in busybox.c and the Gods of BusyBox smite you. Yea, verily:
161 161
162Be sure to read the top of applets.h before adding your applet. 162Be sure to read the top of applets.src.h before adding your applet.
163 163
164 /* all programs above here are alphabetically "less than" 'mu' */ 164 /* all programs above here are alphabetically "less than" 'mu' */
165 IF_MU(APPLET(mu, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 165 IF_MU(APPLET(mu, _BB_DIR_USR_BIN, _BB_SUID_DROP))