mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Adding ENABLE_DELAYED_BOOT flag for delayed boot compilation.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -29,6 +29,13 @@ endif()
|
|||||||
if (NOT DEFINED HSM_DRIVER)
|
if (NOT DEFINED HSM_DRIVER)
|
||||||
set(HSM_DRIVER "ccid")
|
set(HSM_DRIVER "ccid")
|
||||||
endif()
|
endif()
|
||||||
|
option(ENABLE_DELAYED_BOOT "Enable/disable delayed boot" OFF)
|
||||||
|
if(ENABLE_DELAYED_BOOT)
|
||||||
|
add_definitions(-DPICO_XOSC_STARTUP_DELAY_MULTIPLIER=64)
|
||||||
|
message("Enabling delayed boot")
|
||||||
|
else()
|
||||||
|
message("Disabling delayed boot")
|
||||||
|
endif(ENABLE_DELAYED_BOOT)
|
||||||
add_definitions(-DDEBUG_APDU=${DEBUG_APDU})
|
add_definitions(-DDEBUG_APDU=${DEBUG_APDU})
|
||||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/config/mbedtls_config.h ${CMAKE_CURRENT_LIST_DIR}/mbedtls/include/mbedtls COPYONLY)
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/config/mbedtls_config.h ${CMAKE_CURRENT_LIST_DIR}/mbedtls/include/mbedtls COPYONLY)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user