The branch, master has been updated
via bc7a46d1c11abacb94dc68067314d1a6d86285bb (commit)
from f64b66d604c5d78886d47034fb2db2176fc24a09 (commit)
- Log -----------------------------------------------------------------
commit bc7a46d1c11abacb94dc68067314d1a6d86285bb
Author: Salvador Eduardo Tropea <salvador@xxxxxxxxxxx>
Date: Fri Nov 20 23:11:53 2015 +0100
ftdi_eeprom: Add --build-eeprom support
Support a "--build-eeprom" command line option that just
generates the EEPROM image (only flashed if --flash-eeprom is provided)
-----------------------------------------------------------------------
Summary of changes:
ftdi_eeprom/main.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c
index 455f156..32d7119 100644
--- a/ftdi_eeprom/main.c
+++ b/ftdi_eeprom/main.c
@@ -185,6 +185,7 @@ static void usage(const char *program)
fprintf(stderr, " i:<vendor>:<product>:<index>\n");
fprintf(stderr, " s:<vendor>:<product>:<serial>\n");
fprintf(stderr, "--read-eeprom Read eeprom and write to
-filename- from config-file\n");
+ fprintf(stderr, "--build-eeprom Build eeprom image\n");
fprintf(stderr, "--erase-eeprom Erase eeprom\n");
fprintf(stderr, "--flash-eeprom Flash eeprom\n");
}
@@ -263,7 +264,8 @@ int main(int argc, char *argv[])
enum {
COMMAND_READ = 1,
COMMAND_ERASE,
- COMMAND_FLASH
+ COMMAND_FLASH,
+ COMMAND_BUILD
} command = 0;
const char *cfg_filename = NULL;
const char *device_description = NULL;
@@ -307,6 +309,10 @@ int main(int argc, char *argv[])
{
command = COMMAND_FLASH;
}
+ else if (!strcmp(argv[i], "--build-eeprom"))
+ {
+ command = COMMAND_BUILD;
+ }
else
{
usage(argv[0]);
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|