aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mcuboot/imgtool/boot_record.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mcuboot/imgtool/boot_record.py b/tools/mcuboot/imgtool/boot_record.py
index 4112b225..28797c3c 100644
--- a/tools/mcuboot/imgtool/boot_record.py
+++ b/tools/mcuboot/imgtool/boot_record.py
@@ -14,7 +14,10 @@
# limitations under the License.
from enum import Enum
-import cbor
+try:
+ import cbor2 as cbor
+except:
+ import cbor
class SwComponent(int, Enum):