Skip to content

Commit bd2cc24

Browse files
committed
fix: makefile for v2
1 parent f6cf469 commit bd2cc24

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ jobs:
5151
repository: raspberrypi/pico-sdk
5252
path: pico-sdk
5353
submodules: true
54-
ref: 1.5.1
54+
ref: 2.1.1
55+
- name: Checkout pico-extras
56+
uses: actions/checkout@v4.2.1
57+
with:
58+
repository: raspberrypi/pico-extras
59+
path: pico-extras
60+
submodules: true
61+
ref: sdk-2.1.1
5562
- name: Patch tinyusb
5663
run: |
5764
sed -i 's/OSAL_TIMEOUT_WAIT_FOREVER/OSAL_TIMEOUT_NORMAL/g' $GITHUB_WORKSPACE/pico-sdk/lib/tinyusb/src/tusb.c

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# Makefile
2-
export PICO_EXTRAS_PATH ?= $(CURDIR)/pico-extras
3-
export PICO_SDK_PATH ?= $(CURDIR)/pico-sdk
2+
export PICO_EXTRAS_PATH=$(CURDIR)/pico-extras
3+
export PICO_SDK_PATH=$(CURDIR)/pico-sdk
44
NPROCS := $(shell grep -c 'processor' /proc/cpuinfo)
55

66
GOVERSION = go1.21.13
77
GOBIN = $(HOME)/go/bin
88
GOINSTALLPATH = $(GOBIN)/$(GOVERSION)
99

10-
dobuild: pico-extras lib/fuzz.h lib/transfer_saturate2.h lib/sinewaves2.h lib/crossfade4_441.h lib/resonantfilter_data.h lib/cuedsounds.h build
10+
dobuild: pico-sdk pico-extras lib/fuzz.h lib/transfer_saturate2.h lib/sinewaves2.h lib/crossfade4_441.h lib/resonantfilter_data.h lib/cuedsounds.h build
1111
make -C build -j$(NPROCS)
1212

13+
pico-sdk:
14+
git clone https://github.com/raspberrypi/pico-sdk
15+
cd pico-sdk && git checkout 2.1.1
16+
cd pico-sdk && git submodule update --init --recursive
17+
1318
chowdsp:
1419
sudo apt install -y lv2file
1520
wget https://github.com/jatinchowdhury18/AnalogTapeModel/releases/download/v2.11.4/ChowTapeModel-Linux-x64-2.11.4.deb
@@ -179,7 +184,7 @@ lib/cuedsounds_ectocore.h:
179184

180185
pico-extras:
181186
git clone https://github.com/raspberrypi/pico-extras.git pico-extras
182-
cd pico-extras && git checkout sdk-1.5.1
187+
cd pico-extras && git checkout sdk-2.1.1
183188
cd pico-extras && git submodule update --init --recursive
184189

185190
copysamples:

0 commit comments

Comments
 (0)