projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8240ce
)
cmd: fat: add fatrm command
author
AKASHI Takahiro
<takahiro.akashi@linaro.org>
Tue, 11 Sep 2018 06:59:15 +0000
(15:59 +0900)
committer
Alexander Graf
<agraf@suse.de>
Sun, 23 Sep 2018 19:55:30 +0000
(21:55 +0200)
In this patch, a new command, fatrm, is added so as to delete a file
or directory.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/fat.c
patch
|
blob
|
history
diff --git
a/cmd/fat.c
b/cmd/fat.c
index
b685bf7
..
4b9a7ea
100644
(file)
--- a/
cmd/fat.c
+++ b/
cmd/fat.c
@@
-152,6
+152,18
@@
U_BOOT_CMD(
" to 'dev' on 'interface'"
);
+static int do_fat_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+{
+ return do_rm(cmdtp, flag, argc, argv, FS_TYPE_FAT);
+}
+
+U_BOOT_CMD(
+ fatrm, 4, 1, do_fat_rm,
+ "delete a file",
+ "<interface> [<dev[:part]>] <filename>\n"
+ " - delete a file from 'dev' on 'interface'"
+);
+
static int do_fat_mkdir(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[])
{