mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Add HTTP example for nRF
PUBLISHED_FROM=d9d979057d5269ac32d16545dd2489485bda642a
This commit is contained in:
1 parent
c722cfec18
commit
8d72c2a7b2
28 files changed
+4010
-1
No files matched your search
@@ -0,0 +1,26 @@
|
||||
SDK ?= $(shell cat sdk.version)
|
||||
SRC_DIR ?= $(realpath ../../..)
|
||||
|
||||
.PHONY: all clean flash gdbserver gdb jlinkexe rtt
|
||||
|
||||
MAKEFLAGS += w
|
||||
|
||||
ifeq ("$(VERBOSE)","1")
|
||||
V :=
|
||||
else
|
||||
V := @
|
||||
endif
|
||||
|
||||
ADD_DOCKER_ARGS =
|
||||
|
||||
# For communication with the device, we need docker container to be able
|
||||
# to access it.
|
||||
flash gdbserver gdb jlinkexe rtt: \
|
||||
ADD_DOCKER_ARGS = --privileged -v /dev/bus/usb:/dev/bus/usb --net=host
|
||||
|
||||
all clean flash gdbserver gdb jlinkexe rtt:
|
||||
$(V)docker run --rm -it $(ADD_DOCKER_ARGS) -v $(SRC_DIR):/src $(SDK) \
|
||||
/bin/bash -c "\
|
||||
make -C /src/mongoose mongoose.c mongoose.h && \
|
||||
make -C /src/mongoose/examples/nRF52 -f Makefile.build $@ -$(MAKEFLAGS) \
|
||||
"
|
||||
Reference in new issue
Block a user