aboutsummaryrefslogtreecommitdiff
path: root/applets/applet_tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/applet_tables.c')
-rw-r--r--applets/applet_tables.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index 6c3492b4d..35b099eb4 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -69,9 +69,14 @@ int main(int argc, char **argv)
/* Keep in sync with include/busybox.h! */
- puts("/* This is a generated file, don't edit */");
+ puts("/* This is a generated file, don't edit */\n");
- puts("const char applet_names[] ALIGN1 = \"\"\n");
+ if (NUM_APPLETS == 1) {
+ printf("#define SINGLE_APPLET_STR \"%s\"\n", applets[0].name);
+ printf("#define SINGLE_APPLET_MAIN %s_main\n\n", applets[0].name);
+ }
+
+ puts("const char applet_names[] ALIGN1 = \"\"");
for (i = 0; i < NUM_APPLETS; i++) {
printf("\"%s\" \"\\0\"\n", applets[i].name);
}