提交 0349da51 编写于 作者: A AKASHI Takahiro 提交者: Alexander Graf

cmd: fat: add fatmkdir command

In this patch, a new command, fatmkdir, is added.

Please note that, as there is no notion of "current directory" on u-boot,
a directory name specified must contains an absolute directory path as
a parent directory. Otherwise, "/" (root directory) is assumed.
Signed-off-by: NAKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 31a18d57
......@@ -151,4 +151,17 @@ U_BOOT_CMD(
" - write file 'filename' from the address 'addr' in RAM\n"
" to 'dev' on 'interface'"
);
static int do_fat_mkdir(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[])
{
return do_mkdir(cmdtp, flag, argc, argv, FS_TYPE_FAT);
}
U_BOOT_CMD(
fatmkdir, 4, 1, do_fat_mkdir,
"create a directory",
"<interface> [<dev[:part]>] <directory>\n"
" - create a directory in 'dev' on 'interface'"
);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册