Skip to content

Commit

Permalink
Fix SDK branch for enc_bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Feb 7, 2025
1 parent fbaff6a commit b0c593e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions enc_bootloader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ if (NOT USE_PRECOMPILED)

# Temporary import handling, to ensure SDK branch with PICO_MINIMAL_VECTOR_TABLE is present
file(READ ${PICO_SDK_PATH}/src/rp2_common/pico_crt0/crt0.S CRT0_S)
if (CRT0_S MATCHES "PICO_MINIMAL_VECTOR_TABLE")
file(READ ${PICO_SDK_PATH}/src/rp2_common/hardware_clocks/clocks.c CLOCKS_C)
if ((CRT0_S MATCHES "PICO_MINIMAL_VECTOR_TABLE") AND (CLOCKS_C MATCHES "clock_configure_mhz"))
include(${PICO_SDK_PATH}/external/pico_sdk_import.cmake)
else()
# This clones the will-v-pi/pico-sdk repo on the min-vtor branch
# This clones the will-v-pi/pico-sdk repo on the self-decrypting branch
include(tmp_pico_sdk_import.cmake)
endif()

Expand Down
2 changes: 1 addition & 1 deletion enc_bootloader/tmp_pico_sdk_import.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a modified copy of <PICO_SDK_PATH>/external/pico_sdk_import.cmake to use a specific git repo and branch

set(PICO_SDK_FETCH_FROM_GIT_URL "https://github.com/will-v-pi/pico-sdk")
set(PICO_SDK_FETCH_FROM_GIT_TAG "min-vtor")
set(PICO_SDK_FETCH_FROM_GIT_TAG "self-decrypting")

include(FetchContent)
FetchContent_Declare(
Expand Down

0 comments on commit b0c593e

Please sign in to comment.