am 95ebe7a0: Use the specified verity key to sign boot and recovery OTA images.

* commit '95ebe7a09b61931fc9e84b3ce43439c1eda40308':
  Use the specified verity key to sign boot and recovery OTA images.
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index 947a9e4..4fe4938 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -335,6 +335,13 @@
   assert p.returncode == 0, "mkbootimg of %s image failed" % (
       os.path.basename(sourcedir),)
 
+  if info_dict.get("verity_key", None):
+    path = "/" + os.path.basename(sourcedir).lower()
+    cmd = ["boot_signer", path, img.name, info_dict["verity_key"], img.name]
+    p = Run(cmd, stdout=subprocess.PIPE)
+    p.communicate()
+    assert p.returncode == 0, "boot_signer of %s image failed" % path
+
   img.seek(os.SEEK_SET, 0)
   data = img.read()