From cb376eebf096964d300706a21451a5cfd9c5b31a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 4 Aug 2006 21:05:33 +0000 Subject: 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. --- applets/individual.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 applets/individual.c (limited to 'applets') diff --git a/applets/individual.c b/applets/individual.c new file mode 100644 index 0000000..0af256c --- /dev/null +++ b/applets/individual.c @@ -0,0 +1,26 @@ +/* Minimal wrapper to build an individual busybox applet. + * + * Copyright 2005 Rob Landley +#include +#include "usage.h" + +int main(int argc, char *argv[]) +{ + bb_applet_name=argv[0]; + + return APPLET_main(argc,argv); +} + +void bb_show_usage(void) +{ + printf(APPLET_full_usage "\n"); + + exit(1); +} -- cgit v1.1