mirror of https://github.com/wolfSSL/wolfBoot.git
Rp2350: use absolute paths for linker scripts
parent
4c94a52668
commit
3d32c381b9
|
|
@ -1,5 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.13)
|
||||
set(WOLFBOOT_PATH ../../../../)
|
||||
set(WOLFBOOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../..")
|
||||
get_filename_component(WOLFBOOT_PATH "${WOLFBOOT_PATH}" ABSOLUTE)
|
||||
set(CMAKE_CXX_COMPILER arm-none-eabi-gcc)
|
||||
set(LIB_PICO_RUNTIME_INIT=0)
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ target_compile_options(blink PRIVATE
|
|||
)
|
||||
target_compile_definitions(blink PRIVATE PICO_NO_RUNTIME=1)
|
||||
|
||||
pico_set_linker_script(blink ../../../../../hal/rp2350-app.ld)
|
||||
pico_set_linker_script(blink ${WOLFBOOT_PATH}/hal/rp2350-app.ld)
|
||||
target_link_libraries(blink pico_stdlib)
|
||||
|
||||
# create map/bin/hex/uf2 file etc.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.13)
|
||||
set(WOLFBOOT_PATH ../../../..)
|
||||
set(WOLFBOOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../..")
|
||||
get_filename_component(WOLFBOOT_PATH "${WOLFBOOT_PATH}" ABSOLUTE)
|
||||
set(CMAKE_CXX_COMPILER arm-none-eabi-gcc)
|
||||
|
||||
include(${PICO_SDK_PATH}/pico_sdk_init.cmake)
|
||||
|
|
@ -65,7 +66,7 @@ target_include_directories(wolfboot PRIVATE
|
|||
)
|
||||
|
||||
target_link_libraries(wolfboot pico_stdlib hardware_flash)
|
||||
pico_set_linker_script(wolfboot ../../../../../hal/rp2350.ld)
|
||||
pico_set_linker_script(wolfboot ${WOLFBOOT_PATH}/hal/rp2350.ld)
|
||||
|
||||
pico_enable_stdio_usb(wolfboot 1)
|
||||
pico_enable_stdio_uart(wolfboot 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue