summaryrefslogtreecommitdiffstats
path: root/commands/dfu.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-03-07 09:24:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-07 09:24:40 +0100
commit4df69d0b6e79a6c0633921117803802c24020cc3 (patch)
tree6bc294cb3eb8769fe584c72a63d5630999838c47 /commands/dfu.c
parentfbf087808b55b542101654fe838c2db131aa9660 (diff)
parent66a1d213e04748a77170374c35f21f5b176837de (diff)
downloadbarebox-4df69d0b6e79a6c0633921117803802c24020cc3.tar.gz
barebox-4df69d0b6e79a6c0633921117803802c24020cc3.tar.xz
Merge branch 'for-next/env'
Diffstat (limited to 'commands/dfu.c')
-rw-r--r--commands/dfu.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/commands/dfu.c b/commands/dfu.c
index 6bd43e45c8..99a381f18a 100644
--- a/commands/dfu.c
+++ b/commands/dfu.c
@@ -60,11 +60,14 @@ static int dfu_do_parse_one(char *partstr, char **endstr, struct usb_dfu_dev *df
case PARSE_FLAGS:
switch (*partstr) {
case 's':
- dfu->flags |= DFU_FLAG_SAVE;
+ dfu->flags |= DFU_FLAG_SAFE;
break;
case 'r':
dfu->flags |= DFU_FLAG_READBACK;
break;
+ case 'c':
+ dfu->flags |= DFU_FLAG_CREATE;
+ break;
default:
return -EINVAL;
}
@@ -170,9 +173,10 @@ BAREBOX_CMD_HELP_OPT ("-p <str>", "product string\n")
BAREBOX_CMD_HELP_OPT ("-V <id>", "vendor id\n")
BAREBOX_CMD_HELP_OPT ("-P <id>", "product id\n")
BAREBOX_CMD_HELP_OPT ("<description>",
- "device1(name1)[sr],device2(name2)[sr]\n"
+ "device1(name1)[sr],device2(name2)[src]\n"
"'s' means 'safe mode' (download the complete image before flashing) and\n"
- "'r' that readback of the firmware is allowed.\n")
+ "'r' that readback of the firmware is allowed.\n"
+ "'c' if given, the file will be created (for use with regular files)\n")
BAREBOX_CMD_HELP_END
/**