mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-03 03:43:00 +02:00
Fix otp first build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -598,6 +598,39 @@ if(PICO_PLATFORM)
|
|||||||
pico_sdk_init()
|
pico_sdk_init()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ESP_PLATFORM)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_esp32.c
|
||||||
|
)
|
||||||
|
elseif(ENABLE_EMULATION)
|
||||||
|
if(MSVC)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_windows.c
|
||||||
|
)
|
||||||
|
elseif(APPLE)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_macos.c
|
||||||
|
)
|
||||||
|
elseif(UNIX AND NOT APPLE)
|
||||||
|
add_compile_definitions(OTP_LINUX_USE_TSS=1)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_linux.c
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_emulation.c
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
elseif(PICO_RP2350)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_rp2350.c
|
||||||
|
)
|
||||||
|
elseif(PICO_RP2040)
|
||||||
|
list(APPEND PICOKEYS_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/src/otp/otp_rp2040.c
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(USB_ITF_LWIP)
|
if(USB_ITF_LWIP)
|
||||||
list(APPEND PICOKEYS_SOURCES
|
list(APPEND PICOKEYS_SOURCES
|
||||||
${CMAKE_CURRENT_LIST_DIR}/src/usb/lwip/rest.c
|
${CMAKE_CURRENT_LIST_DIR}/src/usb/lwip/rest.c
|
||||||
|
|||||||
Reference in New Issue
Block a user