mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
More windows-friendly makefile for rp2040/pico-w5500
This commit is contained in:
1 parent
28ee40bebe
commit
cf452942fa
1 file changed
+7
-9
@@ -1,12 +1,10 @@
|
|||||||
SDK_VERSION ?= 1.5.0
|
all example build obj/firmware.uf2: obj pico-sdk main.c net.c packed_fs.c
|
||||||
SDK_REPO ?= https://github.com/raspberrypi/pico-sdk
|
cd obj && cmake .. && make
|
||||||
|
|
||||||
all example build build/firmware.uf2: pico-sdk main.c net.c packed_fs.c
|
|
||||||
test -d build || mkdir build
|
|
||||||
cd build && cmake .. && make
|
|
||||||
|
|
||||||
|
obj:
|
||||||
|
mkdir $@
|
||||||
pico-sdk:
|
pico-sdk:
|
||||||
git clone --depth 1 -b $(SDK_VERSION) $(SDK_REPO) $@
|
git clone --depth 1 -b 1.5.0 https://github.com/raspberrypi/pico-sdk $@
|
||||||
cd $@ && git submodule update --init
|
cd $@ && git submodule update --init
|
||||||
|
|
||||||
# Requires env variable VCON_API_KEY set
|
# Requires env variable VCON_API_KEY set
|
||||||
@@ -16,8 +14,8 @@ test: update
|
|||||||
grep 'Ethernet: up' /tmp/output.txt
|
grep 'Ethernet: up' /tmp/output.txt
|
||||||
grep 'MQTT connected' /tmp/output.txt
|
grep 'MQTT connected' /tmp/output.txt
|
||||||
|
|
||||||
update: build/firmware.uf2
|
update: obj/firmware.uf2
|
||||||
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota?uf2=1 --data-binary @$<
|
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota?uf2=1 --data-binary @$<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf pico-sdk build
|
rm -rf pico-sdk obj
|
||||||
Reference in new issue
Block a user