Skip to content

Commit 804654e

Browse files
committed
Merge branch 'main' into fork/shared_upgrade_slot_support
(cherry picked from commit 08ffe42) Signed-off-by: INFINEON\DovhalA <artem.dovhal@infineon.com>
1 parent 0e3c424 commit 804654e

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/zephyr_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
base-path: repos/zephyr
7676
toolchains: arm-zephyr-eabi
7777
sdk-version: 1.0.0
78-
west-project-filter: -.*,+cmsis,+cmsis_6,+hal_nordic,+hal_nxp,+hal_stm32,+hal_ti,+libmetal,+littlefs,+mbedtls,+mcuboot,+open-amp,+tinycrypt,+trusted-firmware-m,+zcbor
78+
west-project-filter: -.*,+cmsis,+cmsis_6,+hal_nordic,+hal_nxp,+hal_stm32,+hal_ti,+libmetal,+littlefs,+mbedtls,+mcuboot,+open-amp,+tinycrypt,+trusted-firmware-m,+zcbor,+tf-psa-crypto
7979
ccache-max-size: 768MB
8080

8181
- name: Checkout MCUBoot

boot/zephyr/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ if(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 OR CONFIG_BOOT_ENCRYPT_EC256)
196196
zephyr_link_libraries(nrfxlib_crypto)
197197
endif()
198198

199-
if(CONFIG_MBEDTLS_CFG_FILE)
199+
if(CONFIG_MBEDTLS_CONFIG_FILE)
200200
# Since here we are not using Zephyr's mbedTLS but rather our own, we need
201201
# to set MBEDTLS_CONFIG_FILE ourselves. When using Zephyr's copy, this
202202
# variable is set by its Kconfig in the Zephyr codebase.
203-
zephyr_compile_definitions(MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CFG_FILE}")
203+
zephyr_compile_definitions(MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CONFIG_FILE}")
204204
endif()
205205
elseif(CONFIG_BOOT_SIGNATURE_TYPE_NONE)
206206
zephyr_include_directories(
@@ -243,7 +243,7 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
243243
${TINYCRYPT_DIR}/source/utils.c
244244
${TINYCRYPT_SHA512_DIR}/source/sha512.c
245245
)
246-
zephyr_compile_definitions(MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CFG_FILE}")
246+
zephyr_compile_definitions(MBEDTLS_CONFIG_FILE="${CONFIG_MBEDTLS_CONFIG_FILE}")
247247
endif()
248248

249249
zephyr_include_directories(

boot/zephyr/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ config BOOT_RSA_TF_PSA_CRYPTO_LEGACY
281281
bool "Use legacy crypto from TF-PSA-Crypto (i.e. Mbed TLS 4.x)"
282282
select BOOT_USE_MBEDTLS
283283
select PSA_CRYPTO
284+
select TEST_RANDOM_GENERATOR if !ENTROPY_HAS_DRIVER
284285
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
285286
select PSA_WANT_ALG_RSA_PKCKS1_V15
286287
select PSA_WANT_ALG_RSA_PSS
@@ -291,6 +292,7 @@ config BOOT_RSA_PSA
291292
bool "Use PSA API crypto"
292293
select BOOT_USE_PSA_CRYPTO
293294
select PSA_CRYPTO
295+
select TEST_RANDOM_GENERATOR if !ENTROPY_HAS_DRIVER
294296
select MBEDTLS_ENABLE_HEAP if MBEDTLS_BUILTIN
295297
select PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY
296298
select PSA_WANT_ALG_RSA_PKCKS1_V15
@@ -512,8 +514,7 @@ config MCUBOOT_INFINITE_LOOP_AFTER_RAM_CLEANUP
512514
Verification option that keeps execution in infinite loop after
513515
RAM cleanup has been performed.
514516

515-
config MBEDTLS_CFG_FILE
516-
string
517+
config MBEDTLS_CONFIG_FILE
517518
# It might be awkward to define an Mbed TLS header file when TinyCrypt
518519
# is used, but the fact is that Mbed TLS' ASN1 parse module is used
519520
# also when TinyCrypt is used as crypto backend.

0 commit comments

Comments
 (0)