mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-01-28 01:47:21 +01:00
Remove FLASH option and just make PACKADDR optional
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
Some checks failed
Bazel presubmit checks / bazel-build-check (macos-latest) (push) Has been cancelled
Bazel presubmit checks / bazel-build-check (ubuntu-latest) (push) Has been cancelled
Bazel presubmit checks / other-bazel-checks (push) Has been cancelled
Check Configs / check-configs (push) Has been cancelled
CMake / build (push) Has been cancelled
This commit is contained in:
parent
c3fdf91962
commit
972404730d
1 changed files with 5 additions and 5 deletions
|
|
@ -287,7 +287,7 @@ function(pico_ensure_load_map TARGET)
|
|||
)
|
||||
endfunction()
|
||||
|
||||
# pico_package_uf2_output(TARGET PACKADDR)
|
||||
# pico_package_uf2_output(TARGET [PACKADDR])
|
||||
# \brief\ Package a UF2 output to be written to the PACKADDR address.
|
||||
# This can be used with a no_flash binary to write the UF2 to flash when dragging &
|
||||
# dropping, and it will be copied to SRAM by the bootrom before execution.
|
||||
|
|
@ -295,16 +295,16 @@ endfunction()
|
|||
# This sets the target property PICOTOOL_UF2_PACKAGE_ADDR to PACKADDR and calls
|
||||
# pico_ensure_load_map(TARGET).
|
||||
#
|
||||
# \param\ PACKADDR The address to package the UF2 to, either "FLASH" or a specific address
|
||||
function(pico_package_uf2_output TARGET PACKADDR)
|
||||
# \param\ PACKADDR The address to package the UF2 to, defaults to start of flash
|
||||
function(pico_package_uf2_output TARGET)
|
||||
picotool_check_configurable(${TARGET})
|
||||
if (${PACKADDR} STREQUAL "FLASH")
|
||||
if (ARGC EQUAL 1)
|
||||
set_target_properties(${TARGET} PROPERTIES
|
||||
PICOTOOL_UF2_PACKAGE_ADDR 0x10000000
|
||||
)
|
||||
else()
|
||||
set_target_properties(${TARGET} PROPERTIES
|
||||
PICOTOOL_UF2_PACKAGE_ADDR ${PACKADDR}
|
||||
PICOTOOL_UF2_PACKAGE_ADDR ${ARGV1}
|
||||
)
|
||||
endif()
|
||||
pico_ensure_load_map(${TARGET})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue