zephyr/samples/subsys/mgmt/updatehub/sample.yaml
Tomi Fontanilles 703e5258eb mgmt: updatehub: replace TinyCrypt by PSA
As part of ongoing work to move away from TinyCrypt and towards PSA
(#43712), introduce a PSA option and remove the TinyCrypt one for the
SHA-256 implementation.

The Mbed TLS implementation is modified to use `mbedtls_sha256`
directly for smaller code size.

The reliance of mgmt/updatehub on storage/flash_map's configuration
(`FLASH_AREA_CHECK_INTEGRITY_BACKEND`) is removed.
The choice of which implementation to use is made automatically,
based on whether a PSA API provider is present (`PSA_CRYPTO_CLIENT`).

This commit also add a test case with PSA (based on Mbed TLS)
in samples/subsys/mgmt/updatehub/sample.yaml.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-06-14 14:02:08 -04:00

43 lines
1.5 KiB
YAML

sample:
description: UpdateHub enterprise-grade Firmware Over-the-Air (FOTA)
name: UpdateHub
common:
harness: net
tags:
- net
- wifi
- updatehub
depends_on: netif
build_only: true
platform_allow: frdm_k64f
integration_platforms:
- frdm_k64f
tests:
sample.net.updatehub:
extra_configs:
- CONFIG_UPDATEHUB_PRODUCT_UID="e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f"
- CONFIG_UPDATEHUB_POLL_INTERVAL=1
- CONFIG_UPDATEHUB_CE=y
- CONFIG_UPDATEHUB_SERVER="updatehub.io"
sample.net.updatehub.psa:
extra_args: OVERLAY_CONFIG="overlay-psa.conf"
extra_configs:
- CONFIG_UPDATEHUB_PRODUCT_UID="e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f"
- CONFIG_UPDATEHUB_POLL_INTERVAL=1
- CONFIG_UPDATEHUB_CE=y
- CONFIG_UPDATEHUB_SERVER="updatehub.io"
sample.net.updatehub.userspace:
extra_configs:
- CONFIG_UPDATEHUB_PRODUCT_UID="e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f"
- CONFIG_UPDATEHUB_POLL_INTERVAL=1
- CONFIG_UPDATEHUB_CE=y
- CONFIG_UPDATEHUB_SERVER="updatehub.io"
- CONFIG_USERSPACE=y
sample.net.updatehub.dtls:
extra_args: OVERLAY_CONFIG="overlay-dtls.conf"
extra_configs:
- CONFIG_UPDATEHUB_PRODUCT_UID="e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f"
- CONFIG_UPDATEHUB_POLL_INTERVAL=1
- CONFIG_UPDATEHUB_CE=y
- CONFIG_UPDATEHUB_SERVER="updatehub.io"