Skip to content

Commit 894936f

Browse files
committed
Use our arm-none-eabi-gcc, apply Pico-SDK patch
1 parent e3a664f commit 894936f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-libpico.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
sudo apt update
26-
sudo apt install cmake make build-essential wget gcc-arm-none-eabi
27-
# RISC-V toolchain
28-
wget -O "$GITHUB_WORKSPACE/riscv32.tar.gz" "https://github.com/earlephilhower/pico-quick-toolchain/releases/download/4.0.1/x86_64-linux-gnu.riscv32-unknown-elf-8ec9d6f.240929.tar.gz"
29-
tar xf "$GITHUB_WORKSPACE/riscv32.tar.gz"
30-
echo "$GITHUB_WORKSPACE/riscv32-unknown-elf/bin" >> "$GITHUB_PATH"
31-
# ARM toolchain taken from Ubuntu repository
26+
sudo apt install cmake make build-essential wget
27+
# Automatically get correct toolchain
28+
cd tools && python3 get.py && cd ..
29+
# add to PATH
30+
echo "$GITHUB_WORKSPACE/system/riscv32-unknown-elf/bin" >> "$GITHUB_PATH"
31+
echo "$GITHUB_WORKSPACE/system/arm-none-eabi/bin" >> "$GITHUB_PATH"
32+
- name: Patch Pico-SDK (Fix Assembly for newer GCC)
33+
run: |
34+
cd pico-sdk
35+
wget https://patch-diff.githubusercontent.com/raw/raspberrypi/pico-sdk/pull/2000.patch
36+
patch -p1 < 2000.patch
3237
- name: Build libpico
3338
run: |
3439
cd tools/libpico

0 commit comments

Comments
 (0)