Fix boot_stage2 function arguments

They don't take a TARGET argument
This commit is contained in:
William Vinnicombe 2025-04-15 11:52:12 +01:00
parent 7aed152026
commit 171daf787e
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ set(PICO_BOOT_STAGE2_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
pico_add_library(boot_stage2_headers)
target_include_directories(boot_stage2_headers SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
# pico_define_boot_stage2(TARGET NAME SOURCES)
# pico_define_boot_stage2(NAME SOURCES)
# Define a boot stage 2 target.
# By convention the first source file name without extension is used for the binary info name
function(pico_define_boot_stage2 NAME SOURCES)
@ -99,7 +99,7 @@ endmacro()
pico_define_boot_stage2(bs2_default ${PICO_DEFAULT_BOOT_STAGE2_FILE})
# pico_clone_default_boot_stage2(TARGET NAME)
# pico_clone_default_boot_stage2(NAME)
# Create a new boot stage 2 target using the default implementation for the current build (PICO_BOARD derived)
function(pico_clone_default_boot_stage2 NAME)
pico_define_boot_stage2(${NAME} ${PICO_DEFAULT_BOOT_STAGE2_FILE})

View File

@ -33,7 +33,7 @@ set(PICO_BOOT_STAGE2_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
pico_add_library(boot_stage2_headers)
target_include_directories(boot_stage2_headers SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
# pico_define_boot_stage2(TARGET NAME SOURCES)
# pico_define_boot_stage2(NAME SOURCES)
# Define a boot stage 2 target.
# By convention the first source file name without extension is used for the binary info name
function(pico_define_boot_stage2 NAME SOURCES)
@ -99,7 +99,7 @@ endmacro()
pico_define_boot_stage2(bs2_default ${PICO_DEFAULT_BOOT_STAGE2_FILE})
# pico_clone_default_boot_stage2(TARGET NAME)
# pico_clone_default_boot_stage2(NAME)
# Create a new boot stage 2 target using the default implementation for the current build (PICO_BOARD derived)
function(pico_clone_default_boot_stage2 NAME)
pico_define_boot_stage2(${NAME} ${PICO_DEFAULT_BOOT_STAGE2_FILE})