-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
52 lines (34 loc) · 1.01 KB
/
Makefile
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
# SPDX-FileCopyrightText: 2024 NorthSec
#
# SPDX-License-Identifier: MIT
ENV = conference
# Uncomment for verbose build
#VERBOSE = -v
all: build
build:
pio run -e $(ENV) $(VERBOSE)
flash:
pio run -e $(ENV) $(VERBOSE) -t upload
menuconfig:
pio run -e $(ENV) $(VERBOSE) -t menuconfig
compiledb:
pio run -e $(ENV) $(VERBOSE) -t compiledb
check:
pio test -e native_tests $(VERBOSE)
check-embedded:
pio test -e embedded_tests $(VERBOSE)
monitor:
pio device monitor --filter=direct
reuse:
reuse lint
factory_reset:
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_region 0x310000 0x100000
erase_ota:
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_region 0xd000 0x2000
erase_conf:
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_region 0x10000 0x100000
erase_ctf:
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_region 0x110000 0x100000
erase_addon:
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_region 0x210000 0x100000
.PHONY: build flash menuconfig compiledb check check-embedded reuse