|author||Rob Landley <email@example.com>||2006-08-04 21:05:33 +0000|
|committer||Rob Landley <firstname.lastname@example.org>||2006-08-04 21:05:33 +0000|
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')
1 files changed, 26 insertions, 0 deletions
diff --git a/applets/individual.c b/applets/individual.c
new file mode 100644
@@ -0,0 +1,26 @@
+/* Minimal wrapper to build an individual busybox applet.
+ * Copyright 2005 Rob Landley <email@example.com
+ * Licensed under GPLv2 or later, see file License in this tarball for details
+const char *bb_applet_name;
+int main(int argc, char *argv)
+ return APPLET_main(argc,argv);
+ printf(APPLET_full_usage "\n");