diff --git a/Libraries/zephyr/MAX/Source/MAX32655/CMakeLists.txt b/Libraries/zephyr/MAX/Source/MAX32655/CMakeLists.txt index c78155ea5c1..3dcf1822f32 100644 --- a/Libraries/zephyr/MAX/Source/MAX32655/CMakeLists.txt +++ b/Libraries/zephyr/MAX/Source/MAX32655/CMakeLists.txt @@ -176,11 +176,15 @@ zephyr_library_sources( ) endif() -if (CONFIG_CRYPTO_MAX32) +if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT) zephyr_library_sources( ${MSDK_PERIPH_SRC_DIR}/AES/aes_me17.c ${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c +) +endif() +if (CONFIG_CRYPTO_MAX32) +zephyr_library_sources( ${MSDK_PERIPH_SRC_DIR}/CRC/crc_me17.c ${MSDK_PERIPH_SRC_DIR}/CRC/crc_reva.c ) diff --git a/Libraries/zephyr/MAX/Source/MAX32657/CMakeLists.txt b/Libraries/zephyr/MAX/Source/MAX32657/CMakeLists.txt index b05b325a44d..c037d8a699f 100644 --- a/Libraries/zephyr/MAX/Source/MAX32657/CMakeLists.txt +++ b/Libraries/zephyr/MAX/Source/MAX32657/CMakeLists.txt @@ -142,11 +142,15 @@ zephyr_library_sources( ) endif() -if (CONFIG_CRYPTO_MAX32) +if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT) zephyr_library_sources( ${MSDK_PERIPH_SRC_DIR}/AES/aes_me30.c ${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c +) +endif() +if (CONFIG_CRYPTO_MAX32) +zephyr_library_sources( ${MSDK_PERIPH_SRC_DIR}/CRC/crc_me30.c ${MSDK_PERIPH_SRC_DIR}/CRC/crc_reva.c )