mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
Update symlinks and Makefiles
This commit is contained in:
1 parent
aeb04deae4
commit
9cc70d0323
12 files changed
+77
-58
No files matched your search
@@ -1,33 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
include(pico-sdk/pico_sdk_init.cmake)
|
||||
|
||||
project(pico_rmii_ethernet)
|
||||
|
||||
# initialize the Pico SDK
|
||||
project(firmware)
|
||||
pico_sdk_init()
|
||||
|
||||
add_compile_definitions(
|
||||
MIP_DEBUG=1
|
||||
MG_ENABLE_PACKED_FS=1
|
||||
MG_ENABLE_TCPIP=1
|
||||
)
|
||||
|
||||
add_executable(firmware
|
||||
driver_rp2040_rmii.c
|
||||
main.c
|
||||
../../../mongoose.c
|
||||
)
|
||||
driver_rp2040_rmii.c
|
||||
main.c
|
||||
mongoose.c)
|
||||
|
||||
target_include_directories(firmware PUBLIC
|
||||
.
|
||||
../../..
|
||||
)
|
||||
|
||||
# enable usb output, disable uart output
|
||||
pico_enable_stdio_usb(firmware 1)
|
||||
pico_enable_stdio_uart(firmware 0)
|
||||
.)
|
||||
|
||||
target_link_libraries(firmware hardware_pio hardware_dma pico_stdlib)
|
||||
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
|
||||
|
||||
# create map/bin/hex file etc.
|
||||
pico_add_extra_outputs(firmware)
|
||||
pico_enable_stdio_usb(firmware 1) # Route stdio
|
||||
pico_enable_stdio_uart(firmware 0) # to USB
|
||||
|
||||
# Mongoose build flags
|
||||
add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||
add_definitions(-DMG_ENABLE_PACKED_FS=1)
|
||||
|
||||
# Extra build flags (enable if needed)
|
||||
add_definitions(-DDUAL_CONFIG=0)
|
||||
@@ -1,16 +1,20 @@
|
||||
SDK_VERSION ?= 1.4.0
|
||||
SDK_REPO ?= https://github.com/raspberrypi/pico-sdk
|
||||
RM = rm -rf
|
||||
MKBUILD = test -d build || mkdir build
|
||||
ifeq ($(OS),Windows_NT)
|
||||
RM = cmd /C del /Q /F /S
|
||||
MKBUILD = if not exist build mkdir build
|
||||
endif
|
||||
|
||||
all example:
|
||||
true
|
||||
|
||||
build: pico-sdk
|
||||
test -d build || mkdir build
|
||||
cd build && cmake .. && make
|
||||
$(MKBUILD)
|
||||
cd build && cmake -G "Unix Makefiles" .. && make
|
||||
|
||||
pico-sdk:
|
||||
git clone --depth 1 -b $(SDK_VERSION) $(SDK_REPO) $@
|
||||
git clone --depth 1 -b 1.4.0 https://github.com/raspberrypi/pico-sdk $@
|
||||
cd $@ && git submodule update --init
|
||||
|
||||
clean:
|
||||
rm -rf pico-sdk build
|
||||
$(RM) pico-sdk build
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../mongoose.c
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../mongoose.h
|
||||
Reference in new issue
Block a user