summaryrefslogtreecommitdiffstats
path: root/common/command.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-12-15 09:11:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-15 10:18:30 +0100
commita3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97 (patch)
tree7a9076c1a20df00baeadca9a07d4c1f5cd0611e2 /common/command.c
parentcaa5cec7b1c93d660aa89d24eb160ab18e4eb628 (diff)
downloadbarebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.gz
barebox-a3ffa97f40dc81f2d6b07ee964f2340fe0c1ba97.tar.xz
rename U-Boot-v2 project to barebox
This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/common/command.c b/common/command.c
index d9907250a7..e21e80dc17 100644
--- a/common/command.c
+++ b/common/command.c
@@ -37,7 +37,7 @@
#include <getopt.h>
const char version_string[] =
- "U-Boot " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")";
+ "barebox " UTS_RELEASE " (" __DATE__ " - " __TIME__ ")";
LIST_HEAD(command_list);
EXPORT_SYMBOL(command_list);
@@ -55,14 +55,14 @@ static int do_exit (cmd_tbl_t *cmdtp, int argc, char *argv[])
return -r - 2;
}
-U_BOOT_CMD_START(exit)
+BAREBOX_CMD_START(exit)
.cmd = do_exit,
.usage = "exit script",
-U_BOOT_CMD_END
+BAREBOX_CMD_END
#endif
-void u_boot_cmd_usage(cmd_tbl_t *cmdtp)
+void barebox_cmd_usage(cmd_tbl_t *cmdtp)
{
#ifdef CONFIG_LONGHELP
/* found - print (long) help info */
@@ -81,7 +81,7 @@ void u_boot_cmd_usage(cmd_tbl_t *cmdtp)
}
#endif /* CONFIG_LONGHELP */
}
-EXPORT_SYMBOL(u_boot_cmd_usage);
+EXPORT_SYMBOL(barebox_cmd_usage);
static int compare(struct list_head *a, struct list_head *b)
{
@@ -103,7 +103,7 @@ int execute_command(int argc, char **argv)
/* OK - call function to do the command */
ret = cmdtp->cmd(cmdtp, argc, argv);
if (ret == COMMAND_ERROR_USAGE) {
- u_boot_cmd_usage(cmdtp);
+ barebox_cmd_usage(cmdtp);
return COMMAND_ERROR;
}
return ret;
@@ -159,7 +159,7 @@ EXPORT_SYMBOL(register_command);
cmd_tbl_t *find_cmd (const char *cmd)
{
cmd_tbl_t *cmdtp;
- cmd_tbl_t *cmdtp_temp = &__u_boot_cmd_start; /*Init value */
+ cmd_tbl_t *cmdtp_temp = &__barebox_cmd_start; /*Init value */
int len;
int n_found = 0;
len = strlen (cmd);
@@ -193,8 +193,8 @@ static int init_command_list(void)
{
cmd_tbl_t *cmdtp;
- for (cmdtp = &__u_boot_cmd_start;
- cmdtp != &__u_boot_cmd_end;
+ for (cmdtp = &__barebox_cmd_start;
+ cmdtp != &__barebox_cmd_end;
cmdtp++)
register_command(cmdtp);