Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Other): Add Zephyr hwinfo driver's dependencies #1292

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32655/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me17.c
Expand Down Expand Up @@ -176,7 +176,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_me17.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
Expand Down
4 changes: 2 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32657/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me30.c
Expand All @@ -142,7 +142,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_BT OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_me30.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
Expand Down
4 changes: 2 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32662/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me12.c
Expand All @@ -152,7 +152,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_me12.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
Expand Down
2 changes: 1 addition & 1 deletion Libraries/zephyr/MAX/Source/MAX32665/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me14.c
Expand Down
12 changes: 10 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32670/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if(NOT TARGET_REV)
endif()

zephyr_include_directories(
${MSDK_PERIPH_SRC_DIR}/AES
${MSDK_PERIPH_SRC_DIR}/DMA
${MSDK_PERIPH_SRC_DIR}/FLC
${MSDK_PERIPH_SRC_DIR}/GPIO
Expand Down Expand Up @@ -105,7 +106,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me15.c
Expand All @@ -121,9 +122,16 @@ zephyr_library_sources(
)
endif()

if (CONFIG_ENTROPY_MAX32_TRNG)
if (CONFIG_ENTROPY_MAX32_TRNG OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_me15.c
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_revb.c
)
endif()

if (CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_me15.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
)
endif()
8 changes: 6 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32672/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me21.c
Expand All @@ -149,11 +149,15 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_me21.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
)
endif()

if (CONFIG_CRYPTO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/CTB/ctb_me21.c
${MSDK_PERIPH_SRC_DIR}/CTB/ctb_reva.c
${MSDK_PERIPH_SRC_DIR}/CTB/ctb_common.c
Expand Down
4 changes: 2 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32675/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me15.c
Expand All @@ -136,7 +136,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_ENTROPY_MAX32_TRNG)
if (CONFIG_ENTROPY_MAX32_TRNG OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_me15.c
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_revb.c
Expand Down
8 changes: 6 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32680/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me17.c
Expand Down Expand Up @@ -179,11 +179,15 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_HWINFO_MAX32)
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
)
Expand Down
4 changes: 2 additions & 2 deletions Libraries/zephyr/MAX/Source/MAX32690/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_me18.c
Expand Down Expand Up @@ -188,7 +188,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_CRYPTO_MAX32)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/CTB/ctb_me18.c
${MSDK_PERIPH_SRC_DIR}/CTB/ctb_reva.c
Expand Down
10 changes: 7 additions & 3 deletions Libraries/zephyr/MAX/Source/MAX78002/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ zephyr_library_sources(
)
endif()

if (CONFIG_SOC_FLASH_MAX32)
if (CONFIG_SOC_FLASH_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/FLC/flc_common.c
${MSDK_PERIPH_SRC_DIR}/FLC/flc_ai87.c
Expand All @@ -158,18 +158,22 @@ zephyr_library_sources(
)
endif()

if (CONFIG_ENTROPY_MAX32_TRNG)
if (CONFIG_ENTROPY_MAX32_TRNG OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_ai87.c
${MSDK_PERIPH_SRC_DIR}/TRNG/trng_revb.c
)
endif()

if (CONFIG_CRYPTO_MAX32)
if (CONFIG_CRYPTO_MAX32 OR CONFIG_HWINFO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/AES/aes_ai87.c
${MSDK_PERIPH_SRC_DIR}/AES/aes_revb.c
)
endif()

if (CONFIG_CRYPTO_MAX32)
zephyr_library_sources(
${MSDK_PERIPH_SRC_DIR}/CRC/crc_ai87.c
${MSDK_PERIPH_SRC_DIR}/CRC/crc_reva.c
)
Expand Down
Loading