mongoose/examples/esp32/Makefile

19 lines
576 B
Makefile
Raw Normal View History

2020-12-14 20:58:27 +08:00
THISDIR = $(realpath $(CURDIR))
ROOTDIR = $(realpath $(CURDIR)/../..)
all: example
2021-07-29 21:21:20 +08:00
example:
true
build: main/main.c Makefile
2020-12-14 20:58:27 +08:00
docker run --rm -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf idf.py build
2020-12-25 00:52:12 +08:00
COMPORT ?= /dev/cu.SLAB_USBtoUART
ESPTOOL ?= esptool.py
flash:
cd build && $(ESPTOOL) --chip esp32 -p $(COMPORT) -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x100000 mongoose-esp32-example.bin
2020-12-25 00:52:12 +08:00
2020-12-14 20:58:27 +08:00
clean:
2021-07-30 20:19:20 +08:00
rm -rf build