blob: 3529a736fbb2f102333e5f7dd5098a7af26c2d27 (
plain)
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
50
51
52
53
54
55
56
|
PORT ?= /dev/ttyUSB0
BUILD_DIR := build
NULL := /dev/null
IDF_PY := idf.py -p $(PORT)
.PHONY: default
default: build
.PHONY: build
build:
@${IDF_PY} build
.PHONY: app
app:
@${IDF_PY} app
.PHONY: target-esp32
target-esp32: clean-build
idf.py set-target esp32
.PHONY: target-linux
target-linux: clean-build
idf.py --preview set-target linux
.PHONY: flash
flash:
@${IDF_PY} flash
.PHONY: menuconfig
menuconfig:
@${IDF_PY} menuconfig
.PHONY: monitor
monitor:
@${IDF_PY} monitor
.PHONY: picocom
picocom:
picocom $(PORT) -b 115200 --lower-rts --lower-dtr --noreset
.PHONY: clean
clean: clean-build
.PHONY: clean-all
clean-all: clean-build clean-sdkconfig
.PHONY: clean-build
clean-build:
-rm -rf $(BUILD_DIR)
.PHONY: clean-sdkconfig
clean-sdkconfig:
-rm -f sdkconfig sdkconfig.old
|