Boot: integrate MCUBoot with TF-M to act as a BL2 bootloader

Modifications in MCUBoot to be aligned with BL2 requirements in TF-M:
 -- OS dependency was removed, no need to copy any OS repo to build it
 -- CMSIS serial driver is used
 -- flash driver interface is aligned with original version
 -- S and NS images are handeled as a single binary blob
 -- automatic image concatenation and signing at build time
 -- authentication based on SHA256 and RSA-2048 digital signature
 -- mbedTLS library is used for cryptographic operation
 -- static analyser warnings fixed in some files

Change-Id: I54891762eac8d0df634e954ff19a9505b16f3028
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/bl2/ext/mcuboot/scripts/imgtool/image.py b/bl2/ext/mcuboot/scripts/imgtool/image.py
index 79a342d..f8309b3 100644
--- a/bl2/ext/mcuboot/scripts/imgtool/image.py
+++ b/bl2/ext/mcuboot/scripts/imgtool/image.py
@@ -30,10 +30,8 @@
 
 TLV_VALUES = {
         'KEYHASH': 0x01,
-        'SHA256': 0x10,
-        'RSA2048': 0x20,
-        'ECDSA224': 0x21,
-        'ECDSA256': 0x22, }
+        'SHA256' : 0x10,
+        'RSA2048': 0x20, }
 
 TLV_INFO_SIZE = 4
 TLV_INFO_MAGIC = 0x6907
@@ -110,8 +108,6 @@
 
         tlv = TLV()
 
-        # Note that ecdsa wants to do the hashing itself, which means
-        # we get to hash it twice.
         sha = hashlib.sha256()
         sha.update(self.payload)
         digest = sha.digest()