File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.13)
2- set (WOLFBOOT_PATH ../../../../)
2+ set (WOLFBOOT_PATH "${CMAKE_CURRENT_SOURCE_DIR} /../../../.." )
3+ get_filename_component (WOLFBOOT_PATH "${WOLFBOOT_PATH} " ABSOLUTE )
34set (CMAKE_CXX_COMPILER arm-none-eabi-gcc)
45set (LIB_PICO_RUNTIME_INIT=0)
56
@@ -27,7 +28,7 @@ target_compile_options(blink PRIVATE
2728)
2829target_compile_definitions (blink PRIVATE PICO_NO_RUNTIME=1)
2930
30- pico_set_linker_script(blink ../../../../.. /hal/rp2350-app.ld)
31+ pico_set_linker_script(blink ${WOLFBOOT_PATH} /hal/rp2350-app.ld)
3132target_link_libraries (blink pico_stdlib)
3233
3334# create map/bin/hex/uf2 file etc.
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.13)
2- set (WOLFBOOT_PATH ../../../..)
2+ set (WOLFBOOT_PATH "${CMAKE_CURRENT_SOURCE_DIR} /../../../.." )
3+ get_filename_component (WOLFBOOT_PATH "${WOLFBOOT_PATH} " ABSOLUTE )
34set (CMAKE_CXX_COMPILER arm-none-eabi-gcc)
45
56include (${PICO_SDK_PATH} /pico_sdk_init.cmake)
@@ -65,7 +66,7 @@ target_include_directories(wolfboot PRIVATE
6566)
6667
6768target_link_libraries (wolfboot pico_stdlib hardware_flash)
68- pico_set_linker_script(wolfboot ../../../../.. /hal/rp2350.ld)
69+ pico_set_linker_script(wolfboot ${WOLFBOOT_PATH} /hal/rp2350.ld)
6970
7071pico_enable_stdio_usb(wolfboot 1)
7172pico_enable_stdio_uart(wolfboot 0)
You can’t perform that action at this time.
0 commit comments