2
2
Commands are added to U-Boot by creating a new command structure.
7
6
U_BOOT_CMD(name,maxargs,repeatable,command,"usage","help")
9
8
name: is the name of the commad. THIS IS NOT a string.
11
11
command: Function pointer (*cmd)(struct cmd_tbl_s *, int, int, char *[]);
12
12
usage: Short description. This is a string
18
18
The structure created is named with a special prefix (__u_boot_cmd_)
19
19
and placed by the linker in a special section.