From 81b899d6df16a3aea0d6b5eeb220db0cbb7088be Mon Sep 17 00:00:00 2001
From: Rob Landley
struct toy_list *toy_find(char *name) - Return the toy_list structure for this command name, or NULL if not found.
void toy_init(struct toy_list *which, char *argv[]) - fill out +the global toys structure, calling get_optargs() if necessary.
void toy_exec(char *argv[]) - Run a built-in command with arguments. Calls toy_find() on the first argument (which must be just a command name without path). Returns if it can't find this command, otherwise calls @@ -156,19 +156,20 @@ still result in configuration dependent build breaks. Use with caution.
Included from the top level Config.in, contains one or more configuration entries for each command.
-Each command has a configuration entry matching the command name (except -that configuration symbols are uppercase and command names are lower case). +
Each command has a configuration entry matching the command name (although +configuration symbols are uppercase and command names are lower case). Options to commands start with the command name followed by an underscore and the option name. Global options are attachd to the "toybox" command, and thus use the prefix "TOYBOX_". This organization is used by -scripts/cfg2files to select which
+scripts/cfg2files to select which toys/*.c files to compile for a given +.config.A commands with multiple names (or multiple similar commands implemented in the same .c file) should have config symbols prefixed with the name of their @@ -177,7 +178,14 @@ have config symbols they're options (symbols with an underscore and suffix) to the NEWTOY() name. (See toys/toylist.h)
+
The first half of this file prototypes all the structures to hold +global variables for each command, and puts them in toy_union.
+ +The second half of this file lists all the commands (in alphabetical +order), along with their command line arguments and install location. This +is used to initialize toy_list in main.c, and later in that file to initialize +NEED_OPTIONS (to figure out whether the command like parsing logic is needed), +and to put the help entries in the right order in toys/help.c.
Menuconfig infrastructure copied from the Linux kernel. See the Linux kernel's Documentation/kbuild/kconfig-language.txt
-- cgit v1.2.3