diff options
author | Rob Landley <rob@landley.net> | 2006-08-04 21:05:33 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-04 21:05:33 +0000 |
commit | cb376eebf096964d300706a21451a5cfd9c5b31a (patch) | |
tree | e7aa7b112f6213b6d3796a968523f01087aabe67 /applets | |
parent | e6a3fef08c87c4755eb2ad1460b3ac0e9a411461 (diff) | |
download | busybox-w32-cb376eebf096964d300706a21451a5cfd9c5b31a.tar.gz busybox-w32-cb376eebf096964d300706a21451a5cfd9c5b31a.tar.bz2 busybox-w32-cb376eebf096964d300706a21451a5cfd9c5b31a.zip |
Digging up my old "make standalone" stuff from a year ago:
http://busybox.net/lists/busybox/2005-September/015766.html
I renamed it "individual" to not confuse it with the standalone shell. (Which
it isn't compatible with for obvious reasons.) Configure busybox (I did
make defconfig), then run scripts/individual and it'll build an individual
version of each applet in the "build" subdirectory.
Currently it builds 146 and fails to build 104 applets out of "make defconfig".
I haven't taught it about multi-file applets yet (like tar), or the ones where
two applets get built from the same source (for example, zcat is a trivial
variant of gunzip so there is no zcat.c). But here's a start.
Diffstat (limited to 'applets')
-rw-r--r-- | applets/individual.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/applets/individual.c b/applets/individual.c new file mode 100644 index 000000000..0af256c6c --- /dev/null +++ b/applets/individual.c | |||
@@ -0,0 +1,26 @@ | |||
1 | /* Minimal wrapper to build an individual busybox applet. | ||
2 | * | ||
3 | * Copyright 2005 Rob Landley <rob@landley.net | ||
4 | * | ||
5 | * Licensed under GPLv2 or later, see file License in this tarball for details | ||
6 | */ | ||
7 | |||
8 | const char *bb_applet_name; | ||
9 | |||
10 | #include <stdio.h> | ||
11 | #include <stdlib.h> | ||
12 | #include "usage.h" | ||
13 | |||
14 | int main(int argc, char *argv[]) | ||
15 | { | ||
16 | bb_applet_name=argv[0]; | ||
17 | |||
18 | return APPLET_main(argc,argv); | ||
19 | } | ||
20 | |||
21 | void bb_show_usage(void) | ||
22 | { | ||
23 | printf(APPLET_full_usage "\n"); | ||
24 | |||
25 | exit(1); | ||
26 | } | ||