fwupdate-tools: Add support for user specified ComponentComparisonStamp from metadata file.

Currently, ComponentComparisonStamp is not supported in metadata file
and the value is hardcoded in the script. This change will enable to
specify ComponentComparisonStamp in metadata file when ComponentOptions
is set to 1.

Unit Tests:
  1. ComponentOptions values other than 1. verify Default
     ComponentComparisonStamp used
  2. ComponentOptions is 1 and component comparison stamp is missing,
     verify error message
  3. ComponentOptions is 1, ComponentComparisonStamp provided in the
     metadata file. Verify the package with hexdump
  4. Verify error messages for invalid value for ComponentComparisonStamp

Signed-off-by: Chinmay Shripad Hegde <hosmanechinmay@gmail.com>
Change-Id: I772d30ebe5d80e2cdca365ad4025cca774db218d
diff --git a/tools/fw-update/metadata-example.json b/tools/fw-update/metadata-example.json
index 1e232d9..185f985 100644
--- a/tools/fw-update/metadata-example.json
+++ b/tools/fw-update/metadata-example.json
@@ -53,7 +53,8 @@
         {
             "ComponentClassification": 10,
             "ComponentIdentifier": 100,
-            "ComponentOptions": [],
+            "ComponentOptions": [1],
+            "ComponentComparisonStamp": "0xFFFFFFFE",
             "RequestedComponentActivationMethod": [],
             "ComponentVersionString": "VersionString5"
         },