RMA: Enable GenerateHwidV3 to accept the rma_mode flag

In the case of RMA we need to be able to ignore the components that
are deprecated, this is already in place however we need to plumb it
through the gooftool generate_hwid_v3 command to leverage it.

BUG=chrome-os-partner:21224
TEST=Manual, run `gooftool generate_hwid_v3` with and without --rma_mode

Change-Id: Ie112e0837f8887bdc099df940b9df515f3f7df66
Reviewed-on: https://gerrit.chromium.org/gerrit/62941
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
Tested-by: Bernie Thompson <bhthompson@chromium.org>
diff --git a/py/gooftool/gooftool.py b/py/gooftool/gooftool.py
index 38ca601..80df765 100755
--- a/py/gooftool/gooftool.py
+++ b/py/gooftool/gooftool.py
@@ -103,6 +103,9 @@
     '--hwid', metavar='HWID',
     help='HWID to verify (instead of the currently set HWID of this system).')
 
+_rma_mode_cmd_arg = CmdArg(
+    '--rma_mode', action='store_true',
+    help='Enable RMA mode, do not check for deprecated components.')
 
 @Command('best_match_hwids',
          _hwdb_path_cmd_arg,
@@ -803,7 +806,8 @@
          _board_cmd_arg,
          _hwdb_path_cmd_arg,
          _probe_results_cmd_arg,
-         _device_info_cmd_arg)
+         _device_info_cmd_arg,
+         _rma_mode_cmd_arg)
 def GenerateHwidV3(options):
   """Generates the HWID of the DUT.
 
@@ -838,7 +842,7 @@
     initial_configs=probe_results.initial_configs)
 
   hwid_object = GetGooftool(options).GenerateHwidV3(
-      device_info, probe_results)
+      device_info, probe_results, rma_mode=options.rma_mode)
 
   final_bom = {}
   for component_class, component_values in (