mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Disable mbedtls, add flash target
This commit is contained in:
parent
708908dce5
commit
b03ececbbb
@ -10,11 +10,11 @@ add_executable(firmware
|
||||
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_enable_stdio_usb(firmware 0) # Route stdio
|
||||
pico_enable_stdio_uart(firmware 1) # to the UART
|
||||
pico_enable_stdio_usb(firmware 1) # Route stdio
|
||||
pico_enable_stdio_uart(firmware 0) # to the USB
|
||||
|
||||
# Mongoose build flags
|
||||
add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||
|
@ -8,7 +8,7 @@ endif
|
||||
all example:
|
||||
true
|
||||
|
||||
build build/firmware.uf2: pico-sdk
|
||||
build build/firmware.uf2: pico-sdk main.c net.c
|
||||
$(MKBUILD)
|
||||
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 $@
|
||||
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/
|
||||
DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/3
|
||||
update: build/firmware.uf2
|
||||
|
Loading…
Reference in New Issue
Block a user