Skip to content

Commit

Permalink
Add a variable to build without ATECCx08 support
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=7f677ab87b9e0b88a5375cad7443dd90147aa049
  • Loading branch information
rojer authored and cesantabot committed Jan 21, 2020
1 parent 9ae4fbf commit 9637f90
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ cdefs:
config_schema:
- ["debug.mbedtls_level", "i", 1, {title: "mbedTLS debug level"}]

build_vars:
# Override to 0 to disable ATECCx08 support.
# Since library is binary, you also need to specify variant: noatca.
MGOS_MBEDTLS_ENABLE_ATCA: 1

conds:
# On CC3200 we use SimpleLink for SSL due to lack of space.
# mbedTLS is still used for crypto primitives (e.g. GCP auth).
Expand All @@ -36,10 +41,11 @@ conds:
cdefs:
MG_ENABLE_SSL: 1
MG_SSL_IF: MG_SSL_IF_MBEDTLS
MBEDTLS_AES_ATCA: 1
MBEDTLS_ECP_ATCA: 1
libs:
- origin: https://github.com/mongoose-os-libs/atca

- when: mos.platform == "cc3200"
apply:
build_vars:
MGOS_MBEDTLS_ENABLE_ATCA: 0

- when: mos.platform == "cc3200"
apply:
Expand All @@ -54,6 +60,14 @@ conds:
includes:
- include/cc32xx

- when: build_vars.MGOS_MBEDTLS_ENABLE_ATCA == "1"
apply:
libs:
- origin: https://github.com/mongoose-os-libs/atca
cdefs:
MBEDTLS_AES_ATCA: 1
MBEDTLS_ECP_ATCA: 1

tags:
- c
- security
Expand Down

0 comments on commit 9637f90

Please sign in to comment.