mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-02 06:50:51 +08:00
4f9627c612
Moved filesystem-related code out of SJS and into common. Made it possible to have one, both or no filesystems enabled. FailFS is now SimpleLinkFS, SLFS (ahem). Example just serves a "Hello, world!" index page for now. PUBLISHED_FROM=0e98ee4b8d95782c10791522c42eae5a7ba314f9
28 lines
724 B
Makefile
28 lines
724 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/smartjs/platforms/cc3200/firmware/smartjs.bin \
|
|
"
|
|
|
|
debug:
|
|
docker run --rm -it --privileged -v $(SRC_DIR):/src $(SDK) \
|
|
/bin/bash -c "cd /src/smartjs/platforms/cc3200 && tools/gdb.sh"
|