diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-01-21 07:24:08 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-01-21 07:24:08 +0000 |
commit | 269e932340869696abfaeb63736ba887d88ef690 (patch) | |
tree | d37feee820644896be53f8a3e1b909042c414344 /util/nvramtool/opts.c | |
parent | 9cd7eba1180396cbd91776a94444696f6b4069c4 (diff) | |
download | coreboot-269e932340869696abfaeb63736ba887d88ef690.tar.xz |
Add nvramtool -C option that takes a CBFS file as argument.
When using this option, nvramtool looks for a cmos_layout.bin
and cmos.default in the image and uses these for layout information
and CMOS data.
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6285 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/opts.c')
-rw-r--r-- | util/nvramtool/opts.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvramtool/opts.c b/util/nvramtool/opts.c index 44a19c9953..9aaeedfbfd 100644 --- a/util/nvramtool/opts.c +++ b/util/nvramtool/opts.c @@ -41,7 +41,7 @@ static void register_op_modifier(nvramtool_op_modifier_t mod, char mod_param[]); static void resolve_op_modifiers(void); static void sanity_check_args(void); -static const char getopt_string[] = "-ab:B:c::de:hil::np:r:tvw:xX:y:Y"; +static const char getopt_string[] = "-ab:B:c::C:de:hil::np:r:tvw:xX:y:Y"; /**************************************************************************** * parse_nvramtool_args @@ -82,6 +82,10 @@ void parse_nvramtool_args(int argc, char *argv[]) register_op(&op_found, NVRAMTOOL_OP_CMOS_CHECKSUM, handle_optional_arg(argc, argv)); break; + case 'C': + register_op_modifier(NVRAMTOOL_MOD_USE_CBFS_FILE, + optarg); + break; case 'd': register_op(&op_found, NVRAMTOOL_OP_LBTABLE_DUMP, NULL); break; |