Skip to content

Commit afa5789

Browse files
de-nordicnvlsianpu
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit ec86244)
1 parent da2ae88 commit afa5789

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
@@ -25,7 +25,7 @@ assert_exists(TINYCRYPT_SHA512_DIR)
2525
set(FIAT_DIR "${MCUBOOT_DIR}/ext/fiat")
2626
assert_exists(FIAT_DIR)
2727
# Path to mbed-tls' asn1 parser library.
28-
if(NOT CONFIG_MBEDTLS_BUILTIN)
28+
if(NOT CONFIG_MBEDTLS_BUILTIN AND NOT CONFIG_BOOT_KEY_IMPORT_BYPASS_ASN)
2929
set(MBEDTLS_ASN1_DIR "${MCUBOOT_DIR}/ext/mbedtls-asn1")
3030
assert_exists(MBEDTLS_ASN1_DIR)
3131
endif()

0 commit comments

Comments
 (0)