-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 1.1 KB
/
Copy pathMakefile
File metadata and controls
49 lines (37 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Makefile -- Convenience wrapper around idf.py for the WeatherProbe firmware.
#
# Usage:
# make build Build the firmware
# make flash Flash to the connected ESP32
# make monitor Open the serial monitor
# make fm Flash and immediately monitor (most common workflow)
# make clean Remove the build directory
# make fullclean Remove build dir and managed components
# make menuconfig Open the sdkconfig TUI
# make size Show firmware size breakdown
# make erase Erase the entire flash
# make provision Run the credential provisioning script
# Serial port -- override on the command line if needed:
# make flash PORT=/dev/ttyUSB1
PORT ?= /dev/ttyUSB0
.PHONY: build flash monitor fm clean fullclean menuconfig size erase provision
build:
idf.py build
flash:
idf.py -p $(PORT) flash
monitor:
idf.py -p $(PORT) monitor
fm:
idf.py -p $(PORT) flash monitor
clean:
idf.py fullclean
fullclean:
rm -rf build managed_components
menuconfig:
idf.py menuconfig
size:
idf.py size
erase:
idf.py -p $(PORT) erase-flash
provision:
./provision.sh