Skip to content

Commit

Permalink
boot command
Browse files Browse the repository at this point in the history
  • Loading branch information
jingri_linux committed Sep 25, 2015
1 parent e725a71 commit a766d47
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions common/cmd_boottest.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Build a simple command for test
* Author:jingri
*/

#include <common.h>
#include <command.h>

static int do_boottest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
int i;

for (i = 0; i < argc; i++)
printf("argv[%d] = %s\n", i, argv[i]);

return 0;
}

U_BOOT_CMD(
boottest, CONFIG_SYS_MAXARGS, 1, do_boottest,
"just for test\n",
"[args..]\n"
" - boottest command---\n"
" -- build a simple command"
);

0 comments on commit a766d47

Please sign in to comment.