-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 999 Bytes
/
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
app_pok3r:
echo "Make Pok3r App"
make -f util/Makefile.app_pok3r
tmk_pok3r:
echo "Make TMK Pok3r"
make -f util/Makefile.tmk_pok3r
pok3r: app_pok3r tmk_pok3r
tmk_pok3r_rgb:
echo "Make TMK Pok3r RGB"
make -f util/Makefile.tmk_pok3r_rgb
pok3r_rgb: tmk_pok3r_rgb
app_vortex_core:
echo "Make Vortex Core App"
make -f util/Makefile.app_vortex_core
tmk_vortex_core:
echo "Make TMK Vortex Core"
make -f util/Makefile.tmk_vortex_core
vortex_core: app_vortex_core tmk_vortex_core
all: pok3r pok3r_rgb vortex_core
jlink:
JLinkExe -Device HT32F1654 -CommanderScript util/connect.jlink
#JLinkExe -Device HT32F1655 -CommanderScript util/connect.jlink
pok3r_bootloader:
cp ../pok3r/disassemble/pok3r/builtin/firmware_builtin.bin .tmp.bin
JLinkExe -Device HT32F1655 -CommanderScript util/flash.jlink
rm .tmp.bin
core_bootloader:
cp ../pok3r/disassemble/vortex_core/builtin_core/firmware_builtin_core.bin .tmp.bin
JLinkExe -Device HT32F1654 -CommanderScript util/flash.jlink
rm .tmp.bin