Skip to content

Commit e34412f

Browse files
committed
tools/ci.sh: Manually install picotool for rp2 builds.
If picotool is not installed, it's fetched and built when compiling each rp2 board. And the "develop" branch of picotool is used instead of a release. Installing it manually using the "master" branch means the latest released version is used (instead of a possibly unstable development version), and also makes building each rp2 board a little faster. Signed-off-by: Damien George <[email protected]>
1 parent 3805e65 commit e34412f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/ci.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ function ci_gcc_riscv_setup {
2222
riscv64-unknown-elf-gcc --version
2323
}
2424

25+
function ci_picotool_setup {
26+
# Manually installing picotool ensures we use a release version, and speeds up the build.
27+
git clone https://github.com/raspberrypi/pico-sdk.git
28+
(cd pico-sdk && git submodule update --init lib/mbedtls)
29+
git clone https://github.com/raspberrypi/picotool.git
30+
(cd picotool && mkdir build && cd build && cmake -DPICO_SDK_PATH=../../pico-sdk .. && make && sudo make install)
31+
picotool version
32+
}
33+
2534
########################################################################################
2635
# c code formatting
2736

@@ -62,6 +71,7 @@ function ci_code_size_setup {
6271
gcc --version
6372
ci_gcc_arm_setup
6473
ci_gcc_riscv_setup
74+
ci_picotool_setup
6575
}
6676

6777
function ci_code_size_build {
@@ -355,6 +365,7 @@ function ci_renesas_ra_board_build {
355365

356366
function ci_rp2_setup {
357367
ci_gcc_arm_setup
368+
ci_picotool_setup
358369
}
359370

360371
function ci_rp2_build {

0 commit comments

Comments
 (0)