Skip to content

Commit ec86244

Browse files
de-nordicnordicjm
authored andcommitted
zephyr: Do not compile ASN1 code when bypassed
Commit removes files needed for ASN1 parsing from compilation, when ASN1 bypass is enabled. Signed-off-by: Dominik Ermel <[email protected]>
1 parent a01ca4c commit ec86244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ assert_exists(TINYCRYPT_SHA512_DIR)
3131
set(FIAT_DIR "${MCUBOOT_DIR}/ext/fiat")
3232
assert_exists(FIAT_DIR)
3333
# Path to mbed-tls' asn1 parser library.
34-
if(NOT CONFIG_MBEDTLS_BUILTIN)
34+
if(NOT CONFIG_MBEDTLS_BUILTIN AND NOT CONFIG_BOOT_KEY_IMPORT_BYPASS_ASN)
3535
set(MBEDTLS_ASN1_DIR "${MCUBOOT_DIR}/ext/mbedtls-asn1")
3636
assert_exists(MBEDTLS_ASN1_DIR)
3737
endif()

0 commit comments

Comments
 (0)