Adding ENABLE_DELAYED_BOOT flag for delayed boot compilation.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
e5fe638c68
commit
1e66e51595
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ endif()
|
|||
if (NOT DEFINED HSM_DRIVER)
|
||||
set(HSM_DRIVER "ccid")
|
||||
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})
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/config/mbedtls_config.h ${CMAKE_CURRENT_LIST_DIR}/mbedtls/include/mbedtls COPYONLY)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue