From a164ef6cf5f815b8ddd51b637f68f809a4840647 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Mon, 6 Sep 2021 19:59:12 +0100 Subject: [PATCH] Disable signature checks on CC3200 It doesn't have the space for crypto PUBLISHED_FROM=2f194b6d455d25bc1493c8c7c7b73da06a3dde8e --- mos.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mos.yml b/mos.yml index 153dc53..69aa77f 100644 --- a/mos.yml +++ b/mos.yml @@ -36,7 +36,18 @@ config_schema: - ["update.key7", "s", "", {title: "Update signature verification key 7. ECDSA P-256, DER + Base64."}] - ["update.sig_req_mask", "i", -1, {title: "Update signature requirements. If >= 0, it is used as a bitmask where bit 0 corresponds to key 0, bit 1 to key 1, etc. All of the masked bits must be set, i.e. if sig_req is 3, update must be signed by both key 0 and key 1."}] +cdefs: + MGOS_LIC_ENABLE: 1 + MGOS_OTA_SIGN_ENABLE: 1 + conds: + - when: mos.platform == "cc3200" + apply: + cdefs: + # CC3200 just can't do it - crypto takes too much space. + MGOS_LIC_ENABLE: 0 + MGOS_OTA_SIGN_ENABLE: 0 + - when: mos.platform == "rs14100" apply: libs: