mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
CC3200 FS refactoring and basic Mongoose example
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
This commit is contained in:
1 parent
012f241005
commit
4f9627c612
9 files changed
+441
-3
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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"
|
||||
Reference in new issue
Block a user