-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
52 lines (42 loc) · 1.22 KB
/
Makefile.toml
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
[tasks.build-release]
command = "cargo"
args = ["build", "--release", "-vv"]
[tasks.convert-to-bin]
command = "esptool"
args = ["--chip", "esp32", "elf2image", "--output", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/xtensa-esp32-espidf/release/charizhard.bin", "C:/chhard/target/xtensa-esp32-espidf/release/charizhard"]
[tasks.write]
command = "esptool"
args = [
"write_flash", #"--encrypt",
"0x1000", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/xtensa-esp32-espidf/release/bootloader.bin",
"0x10000", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/xtensa-esp32-espidf/release/partition-table.bin",
"0x20000", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target/xtensa-esp32-espidf/release/charizhard.bin"
]
[tasks.monitor]
command = "espflash"
args = ["monitor"]
[tasks.flash]
dependencies = [
"build-release",
"convert-to-bin",
"write",
]
[tasks.erase]
command = "espflash"
args = ["erase-flash"]
# CONFIG
[tasks.mvdebug]
command = "mv"
args = ["sdkconfig", "sdkconfig.debug"]
[tasks.mvrelease]
command = "mv"
args = ["sdkconfig.debug", "sdkconfig"]
[tasks.pio]
command = "cargo"
args = ["pio", "espidf", "menuconfig"]
[tasks.config]
dependencies = [
"mvdebug",
"pio",
"mvrelease",
]