Files
mongoose/tutorials/esp32/minimal/Makefile
T
2026-11-10 11:21:36 +00:00

23 lines
508 B
Makefile

THISDIR = $(realpath $(CURDIR))
ROOTDIR = $(realpath $(CURDIR)/../../..)
DOCKER ?= docker run --rm $(DA) -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf
ARCH ?= esp32
PORT ?= /dev/ttyUSB0
all: example
example:
true
build: Makefile $(wildcard main/*)
test -d build || $(DOCKER) idf.py set-target $(ARCH)
$(DOCKER) idf.py build
flash:
cd build && esptool --chip $(ARCH) --baud 460800 --port $(PORT) write-flash @flash_args
clean:
test -d build && (rm -rf build sdkconfig || true)
.PHONY: build