mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Make nRF5 example fit better in nRF ecosystem
By making dir hierarchy replicate that of examples provided with the nRF IoT SDK. Also, example for Keil uVision IDE is added. PUBLISHED_FROM=1a3d9a54d15eb1acfb1b5d162138576a387ed21c
This commit is contained in:
1 parent
99377bdd30
commit
f061dcf8b6
31 files changed
+2446
-1023
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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 && \
|
||||
if [ ! -e /src/mongoose/examples/nRF52/nrf5_iot_sdk ]; then ln -s /opt/nrf5_iot_sdk /src/mongoose/examples/nRF52/nrf5_iot_sdk; fi && \
|
||||
make -C /src/mongoose/examples/nRF52/http/boards/pca10040/armgcc $@ -$(MAKEFLAGS) \
|
||||
"
|
||||
Reference in new issue
Block a user