diff options
author | Daniel Campello <campello@chromium.org> | 2021-04-27 08:49:19 -0600 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-05-06 00:16:01 +0000 |
commit | 1a9441f7487aea5b2a03e6aa88157261c5c2ba9b (patch) | |
tree | 635eb4eb5ae6014ebeb63c65599ca934485bef8f /util | |
parent | e7155dda0a489d4aeb0d9527df7bcdb51f1589fb (diff) | |
download | flashrom-1a9441f7487aea5b2a03e6aa88157261c5c2ba9b.tar.gz flashrom-1a9441f7487aea5b2a03e6aa88157261c5c2ba9b.tar.bz2 flashrom-1a9441f7487aea5b2a03e6aa88157261c5c2ba9b.zip |
CHROMIUM: flashrom_tester: Remove --ignore-fmap option
This change removes --ignore-fmap as this is implicitly computed based
on other supplied options by the user.
Original-Signed-off-by: Daniel Campello <campello@chromium.org>
Original-Cq-Depend: chromium:2854174, chrome-internal:3789445, chromium:2854014
Original-Change-Id: I841a56d8726644cedd7d616ddfd5656b92dd7e59
Original-Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2851658
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
(cherry picked from commit 2e2a5e449229e9c9604235a98b56e5dd29bf25cf)
Change-Id: Ib329f3adb59ce1848d1540844d64b968f49eb22a
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52890
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/flashrom_tester/flashrom/src/cmd.rs | 6 | ||||
-rw-r--r-- | util/flashrom_tester/flashrom/src/lib.rs | 7 |
2 files changed, 3 insertions, 10 deletions
diff --git a/util/flashrom_tester/flashrom/src/cmd.rs b/util/flashrom_tester/flashrom/src/cmd.rs index 8775ed44..37f8a72f 100644 --- a/util/flashrom_tester/flashrom/src/cmd.rs +++ b/util/flashrom_tester/flashrom/src/cmd.rs @@ -129,9 +129,6 @@ fn flashrom_decode_opts(opts: FlashromOpt) -> Vec<String> { if opts.flash_name { params.push("--flash-name".to_string()); } - if opts.ignore_fmap { - params.push("--ignore-fmap".to_string()); - } if opts.verbose { params.push("-V".to_string()); } @@ -325,11 +322,10 @@ mod tests { assert_eq!( flashrom_decode_opts(FlashromOpt { flash_name: true, - ignore_fmap: true, verbose: true, ..Default::default() }), - &["--flash-name", "--ignore-fmap", "-V"] + &["--flash-name", "-V"] ); } diff --git a/util/flashrom_tester/flashrom/src/lib.rs b/util/flashrom_tester/flashrom/src/lib.rs index 734e3ff4..75797d39 100644 --- a/util/flashrom_tester/flashrom/src/lib.rs +++ b/util/flashrom_tester/flashrom/src/lib.rs @@ -91,9 +91,8 @@ pub struct FlashromOpt<'a> { pub layout: Option<&'a str>, // -l <file> pub image: Option<&'a str>, // -i <name> - pub flash_name: bool, // --flash-name - pub ignore_fmap: bool, // --ignore-fmap - pub verbose: bool, // -V + pub flash_name: bool, // --flash-name + pub verbose: bool, // -V } #[derive(Default)] @@ -183,8 +182,6 @@ pub fn write_file_with_layout( layout: rws.layout_file, image: rws.name_file, - ignore_fmap: true, - ..Default::default() }; |