Flatten mem stats

This commit is contained in:
cpq committed 2026-11-10 11:21:36 +00:00
1 parent de037d6ef9
commit 069024b41c
17 files changed
+347 -260

No files matched your search

+5 -8
View File
@@ -1,25 +1,22 @@
THISDIR = $(realpath $(CURDIR))
ROOTDIR = $(realpath $(CURDIR)/../../..)
DOCKER ?= docker run --rm $(DA) -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf
CMD ?= idf.py -DCFLAGS_EXTRA="$(CFLAGS_EXTRA)" build
ARCH ?= esp32
PORT ?= /dev/ttyUSB0
CFLAGS_EXTRA ?= -DMG_TLS=MG_TLS_BUILTIN
all: example
example:
true
build: Makefile $(wildcard main/*)
$(DOCKER) $(CMD)
test -d build || $(DOCKER) idf.py set-target $(ARCH)
$(DOCKER) idf.py build
flash:
flash: CMD = idf.py flash
flash: DA = --device $(PORT)
flash: build
cd build && esptool --chip $(ARCH) --baud 460800 --port $(PORT) write-flash @flash_args
clean:
test -d build && $(DOCKER) rm -rf build sdkconfig || true
test -d build && (rm -rf build sdkconfig || true)
.PHONY: build