mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-22 23:28:06 +08:00
eaef5bd133
This reverts commit 1a17e17c462bdd4e1d26d8742f8b7087273e04c2. PUBLISHED_FROM=80028de308c9a021955d1425d2bfee8feb85f193
28 lines
709 B
Makefile
28 lines
709 B
Makefile
SDK ?= $(shell cat sdk.version)
|
|
SRC_DIR ?= $(realpath ../../..)
|
|
PORT ?= auto
|
|
|
|
.PHONY: all clean
|
|
|
|
MAKEFLAGS += w
|
|
|
|
all clean:
|
|
docker run --rm -i -v $(SRC_DIR):/src $(SDK) \
|
|
/bin/bash -c "\
|
|
make -C /src/mongoose mongoose.c mongoose.h && \
|
|
make -C /src/mongoose/examples/CC3200 -f Makefile.build $@ -$(MAKEFLAGS) \
|
|
"
|
|
|
|
ifeq ("$(PORT)", "auto")
|
|
PORT = $(shell ls -1 /dev/ttyUSB* | tail -n 1)
|
|
endif
|
|
flash:
|
|
docker run --rm -it --privileged -v $(SRC_DIR):/src $(SDK) /bin/bash -c "\
|
|
cd /usr/local/bin; \
|
|
./cc3200prog $(PORT) /src/fw/platforms/cc3200/firmware/fw.bin \
|
|
"
|
|
|
|
debug:
|
|
docker run --rm -it --privileged -v $(SRC_DIR):/src $(SDK) \
|
|
/bin/bash -c "cd /src/fw/platforms/cc3200 && tools/gdb.sh"
|