mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Disable mbedtls, add flash target
This commit is contained in:
1 parent
708908dce5
commit
b03ececbbb
2 files changed
+7
-4
No files matched your search
@@ -10,11 +10,11 @@ add_executable(firmware
|
|||||||
target_include_directories(firmware PUBLIC
|
target_include_directories(firmware PUBLIC
|
||||||
.)
|
.)
|
||||||
|
|
||||||
target_link_libraries(firmware pico_stdlib hardware_spi pico_rand pico_mbedtls)
|
target_link_libraries(firmware pico_stdlib hardware_spi pico_rand)
|
||||||
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
|
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
|
||||||
|
|
||||||
pico_enable_stdio_usb(firmware 0) # Route stdio
|
pico_enable_stdio_usb(firmware 1) # Route stdio
|
||||||
pico_enable_stdio_uart(firmware 1) # to the UART
|
pico_enable_stdio_uart(firmware 0) # to the USB
|
||||||
|
|
||||||
# Mongoose build flags
|
# Mongoose build flags
|
||||||
add_definitions(-DMG_ENABLE_TCPIP=1)
|
add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ endif
|
|||||||
all example:
|
all example:
|
||||||
true
|
true
|
||||||
|
|
||||||
build build/firmware.uf2: pico-sdk
|
build build/firmware.uf2: pico-sdk main.c net.c
|
||||||
$(MKBUILD)
|
$(MKBUILD)
|
||||||
cd build && cmake -G "Unix Makefiles" .. && make
|
cd build && cmake -G "Unix Makefiles" .. && make
|
||||||
|
|
||||||
@@ -16,6 +16,9 @@ pico-sdk:
|
|||||||
git clone --depth 1 -b 1.5.0 https://github.com/raspberrypi/pico-sdk $@
|
git clone --depth 1 -b 1.5.0 https://github.com/raspberrypi/pico-sdk $@
|
||||||
cd $@ && git submodule update --init
|
cd $@ && git submodule update --init
|
||||||
|
|
||||||
|
flash: build/firmware.uf2
|
||||||
|
picotool load $< -f
|
||||||
|
|
||||||
# Automated remote test. Requires env variable VCON_API_KEY set. See https://vcon.io/automated-firmware-tests/
|
# Automated remote test. Requires env variable VCON_API_KEY set. See https://vcon.io/automated-firmware-tests/
|
||||||
DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/3
|
DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/3
|
||||||
update: build/firmware.uf2
|
update: build/firmware.uf2
|
||||||
|
|||||||
Reference in new issue
Block a user