Fix MLKEM build.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-03-07 17:42:26 +01:00
parent 553eecf496
commit 879daefc0a
2 changed files with 16 additions and 2 deletions

View File

@@ -1,6 +1,20 @@
set(HSM_REQUIRES
mbedtls
efuse
pico-keys-sdk
)
if(ENABLE_PQC)
list(APPEND HSM_REQUIRES
mlkem512
mlkem768
mlkem1024
)
endif()
idf_component_register(
SRCS ${SOURCES}
INCLUDE_DIRS .
REQUIRES mbedtls efuse pico-keys-sdk
REQUIRES ${HSM_REQUIRES}
)
idf_component_set_property(${COMPONENT_NAME} WHOLE_ARCHIVE ON)