summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:55 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:55 +0200
commitd5a108ece39a1a32dd888f33937b5db8d9b3ba70 (patch)
treee2c6d5f0215d6e191945453dda9b31052ebedff5 /include/command.h
parent321dc1bf8f0ee24df9d8a02a34bcfae7685fa001 (diff)
downloadbarebox-d5a108ece39a1a32dd888f33937b5db8d9b3ba70.tar.gz
barebox-d5a108ece39a1a32dd888f33937b5db8d9b3ba70.tar.xz
svn_rev_462
- Add help texts for many commands. - Let the linker sort the command table. - Add support for multiple argmuments in several commands (mkdir, rmdir, rm, cat)
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h
index 5482e06e2f..97c4ba06b8 100644
--- a/include/command.h
+++ b/include/command.h
@@ -60,6 +60,7 @@ extern cmd_tbl_t __u_boot_cmd_end;
/* common/command.c */
cmd_tbl_t *find_cmd(const char *cmd);
+void u_boot_cmd_usage(cmd_tbl_t *cmdtp);
#ifdef CONFIG_AUTO_COMPLETE
extern void install_auto_complete(void);
@@ -89,12 +90,15 @@ typedef void command_t (cmd_tbl_t *, int, int, char *[]);
* to include/cmd_confdefs.h
*/
+#define __stringify_1(x) #x
+#define __stringify(x) __stringify_1(x)
+
#define Struct_Section __attribute__ ((unused,section (".u_boot_cmd")))
#define U_BOOT_CMD_START(_name) \
const cmd_tbl_t __u_boot_cmd_##_name \
- Struct_Section = { \
+ __attribute__ ((unused,section (".u_boot_cmd_" __stringify(_name)))) = { \
.name = #_name,
#define U_BOOT_CMD_END \