Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index aad04cf..39c2348 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -381,8 +381,8 @@
return 1;
}
-cmd_tbl_t U_BOOT_CMD(BOOTM) = MK_CMD_ENTRY(
- "bootm", CFG_MAXARGS, 1, do_bootm,
+U_BOOT_CMD(
+ bootm, CFG_MAXARGS, 1, do_bootm,
"bootm - boot application image from memory\n",
"[addr [arg ...]]\n - boot application image stored in memory\n"
" passing arguments 'arg ...'; when booting a Linux kernel,\n"
@@ -872,15 +872,15 @@
return rcode;
}
-cmd_tbl_t U_BOOT_CMD(BOOT) = MK_CMD_ENTRY(
- "boot", 1, 1, do_bootd,
+U_BOOT_CMD(
+ boot, 1, 1, do_bootd,
"boot - boot default, i.e., run 'bootcmd'\n",
NULL
);
/* keep old command name "bootd" for backward compatibility */
-cmd_tbl_t U_BOOT_CMD(BOOTD) = MK_CMD_ENTRY(
- "bootd", 1, 1, do_bootd,
+U_BOOT_CMD(
+ bootd, 1, 1, do_bootd,
"bootd - boot default, i.e., run 'bootcmd'\n",
NULL
);
@@ -945,8 +945,9 @@
printf ("OK\n");
return 0;
}
-cmd_tbl_t U_BOOT_CMD(IMINFO) = MK_CMD_ENTRY(
- "iminfo", CFG_MAXARGS, 1, do_iminfo,
+
+U_BOOT_CMD(
+ iminfo, CFG_MAXARGS, 1, do_iminfo,
"iminfo - print header information for application image\n",
"addr [addr ...]\n"
" - print header information for application image starting at\n"