-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
42 lines (31 loc) · 1.27 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
BOARD := lpcxpresso55
DEVELOP := --features board-$(BOARD),develop
PROVISIONER := --features board-$(BOARD),develop-provisioner
# builds firmware bundle with development features,
# i.e., no encrypted storage, etc.
build-dev:
cargo build --release $(DEVELOP)
cargo objcopy --release $(DEVELOP) -- -O binary app.bin
# builds firmware bundle as before, *including* provisioner app
build-pro:
cargo build --release $(PROVISIONER)
cargo objcopy --release $(PROVISIONER) -- -O binary provisioner.bin
build-release:
cargo build --release --features board-solo2
cargo objcopy --release --features board-solo2 -- -O binary app-solo2.bin
.PHONY: today-as-minor-version
today-in-days:
python -c "from datetime import date as d; print((d.today() - d(2020, 1, 1)).days)"
run-dev:
cargo run --release $(DEVELOP)
run-pro:
cargo run --release $(PROVISIONER)
bacon:
bacon
jlink:
../../scripts/bump-jlink
JLinkGDBServer -strict -device LPC55S69 -if SWD -vd
PACK_VERSION := $(shell wget -O - -qq https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.pidx|grep LPC55S69|python -c'import sys; print(sys.stdin.read().rsplit("version=\"", 1)[1].split("\"", 1)[0])')
PACK := NXP.LPC55S69_DFP.$(PACK_VERSION).pack
get-cmsis-pack:
wget -qq https://mcuxpresso.nxp.com/cmsis_pack/repo/$(PACK) -O ./lpc55s69.pack