-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 1.04 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
all: images prep test
ARCH ?= armcm3
VENDOR ?= STMicro
MCU ?= STM32F103xx
CLK ?= 72000000
MECRISP ?= ../mecrisp-stellaris/linux-ra/mecrisp-stellaris-linux
prep:: .done
prep:: img
img:
mkdir img
images: img
scripts/mf-term -b -x snips/img-debug-base.fs -c $(MECRISP)
scripts/mf-term -b -x snips/img-debug-min.fs -c $(MECRISP)
scripts/mf-term -b -x snips/img-debug.fs -c $(MECRISP)
scripts/mf-term -b -x snips/img.fs -c $(MECRISP)
.done:
mkdir -p .done
prep:: .done/gen_core
.done/gen_core:
scripts/gen_all ./svd/core/Device/ARM/SVD/ ./svd/fs/core/
touch .done/gen_core
prep:: .done/gen_soc_${VENDOR}
.done/gen_soc_${VENDOR}:
scripts/gen_all ./svd/soc/data/${VENDOR}/ ./svd/fs/soc/${VENDOR}/
touch .done/gen_soc_${VENDOR}
test: prep test/gen/bugtest.fs
scripts/test
scripts/testdocs
files: prep test/gen/bugtest.fs
test/gen/bugtest.fs: scripts/mapgen test/bugtest.svd
scripts/mapgen test/bugtest.svd BFT > test/gen/bugtest.fs
DEV ?= /dev/ttyUSB0
rtest: prep
scripts/test_real ${DEV} ${ARCH} ${VENDOR} ${MCU} ${CLK}
.PHONY: files test all prep