Add ESP32 minimal project with crash helper

This commit is contained in:
Sergio R. Caprile authored and robert committed 2026-09-09 12:07:51 +03:00
1 parent cc64c41737
commit 830f6c589b
9 files changed
+397

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
THISDIR = $(realpath $(CURDIR))
ROOTDIR = $(realpath $(CURDIR)/../../..)
DOCKER ?= docker run --rm $(DA) -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf
CMD ?= idf.py build
PORT ?= /dev/ttyUSB0
all: example
example:
true
build: Makefile $(wildcard main/*)
$(DOCKER) $(CMD)
flash:
flash: CMD = idf.py flash
flash: DA = --device $(PORT)
flash: build
clean:
test -d build && $(DOCKER) rm -rf build sdkconfig || true
.PHONY: build