forked from physical-computation/Warp-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
106 lines (98 loc) · 6.23 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
include setup.conf
all: warp glaux
warp:
mkdir -p build/ksdk1.1/work
mkdir -p build/ksdk1.1/work/boards/Warp
mkdir -p build/ksdk1.1/work/demos/Warp/src
mkdir -p build/ksdk1.1/work/demos/Warp/armgcc/Warp
cp -r tools/sdk/ksdk1.1.0/* build/ksdk1.1/work
cp src/boot/ksdk1.1.0/SEGGER* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/boot.c build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/errstrs* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/powermodes.c build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/warp.h build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/startup_MKL03Z4.S build/ksdk1.1/work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S
cp src/boot/ksdk1.1.0/gpio_pins.c build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/gpio_pins.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/glaux.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/CMakeLists-Warp.txt build/ksdk1.1/work/demos/Warp/armgcc/Warp/CMakeLists.txt
cp src/boot/ksdk1.1.0/devBMX055.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devADXL362.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devMMA8451Q.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devLPS25H.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devHDC1000.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devMAG3110.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devSI7021.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devL3GD20H.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devBME680.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devTCS34725.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devSI4705.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devCCS811.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devAMG8834.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devAS7262.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devAS7263.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devAS726x.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devRV8803C7.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devBGX.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devISL23415.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devIS25xP.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devAT45DB.* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/devICE40.* build/ksdk1.1/work/demos/Warp/src/
cd build/ksdk1.1/work/lib/ksdk_platform_lib/armgcc/KL03Z4 && ./clean.sh; ./build_release.sh
cd build/ksdk1.1/work/demos/Warp/armgcc/Warp && ./clean.sh; ./build_release.sh
@echo "\n\nNow, run\n\n\tmake load-warp\n\n"
glaux:
mkdir -p build/ksdk1.1/work
mkdir -p build/ksdk1.1/work/boards/Glaux
mkdir -p build/ksdk1.1/work/demos/Glaux/src
mkdir -p build/ksdk1.1/work/demos/Glaux/armgcc/Glaux
cp -r tools/sdk/ksdk1.1.0/* build/ksdk1.1/work
cp src/boot/ksdk1.1.0/SEGGER* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/boot.c build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/errstrs* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/powermodes.c build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/warp.h build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/startup_MKL03Z4.S build/ksdk1.1/work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S
cp src/boot/ksdk1.1.0/gpio_pins.c build/ksdk1.1/work/boards/Glaux
cp src/boot/ksdk1.1.0/gpio_pins.h build/ksdk1.1/work/boards/Glaux
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/boards/Glaux
cp src/boot/ksdk1.1.0/glaux.h build/ksdk1.1/work/boards/Glaux
cp src/boot/ksdk1.1.0/CMakeLists-Glaux.txt build/ksdk1.1/work/demos/Glaux/armgcc/Glaux/CMakeLists.txt
cp src/boot/ksdk1.1.0/devBME680.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devIS25xP.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devRV8803C7.* build/ksdk1.1/work/demos/Glaux/src/
cp src/boot/ksdk1.1.0/devBME680.* build/ksdk1.1/work/demos/Glaux/src/
cd build/ksdk1.1/work/lib/ksdk_platform_lib/armgcc/KL03Z4 && ./clean.sh; ./build_release.sh
cd build/ksdk1.1/work/demos/Glaux/armgcc/Glaux && ./clean.sh; ./build_release.sh
@echo "\n\nNow, run\n\n\tmake load-glaux\n\n"
frdmkl03:
mkdir -p build/ksdk1.1/work
mkdir -p build/ksdk1.1/work/boards/Warp
mkdir -p build/ksdk1.1/work/demos/Warp/src
mkdir -p build/ksdk1.1/work/demos/Warp/armgcc/Warp
cp -r tools/sdk/ksdk1.1.0/* build/ksdk1.1/work
cp src/boot/ksdk1.1.0/SEGGER* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/boot.c build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/errstrs* build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/powermodes.c build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/warp.h build/ksdk1.1/work/demos/Warp/src/
cp src/boot/ksdk1.1.0/startup_MKL03Z4.S build/ksdk1.1/work/platform/startup/MKL03Z4/gcc/startup_MKL03Z4.S
cp src/boot/ksdk1.1.0/gpio_pins.c build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/gpio_pins.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/config.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/glaux.h build/ksdk1.1/work/boards/Warp
cp src/boot/ksdk1.1.0/CMakeLists-FRDMKL03.txt build/ksdk1.1/work/demos/Warp/armgcc/Warp/CMakeLists.txt
cp src/boot/ksdk1.1.0/devMMA8451Q.* build/ksdk1.1/work/demos/Warp/src/
cd build/ksdk1.1/work/lib/ksdk_platform_lib/armgcc/KL03Z4 && ./clean.sh; ./build_release.sh
cd build/ksdk1.1/work/demos/Warp/armgcc/Warp && ./clean.sh; ./build_release.sh
@echo "\n\nNow, run\n\n\tmake load-warp\n\n"
load-warp:
$(JLINKPATH) -device MKL03Z32XXX4 -if SWD -speed 10000 -CommanderScript tools/scripts/warp.jlink.commands
load-glaux:
$(JLINKPATH) -device MKL03Z32XXX4 -if SWD -speed 10000 -CommanderScript tools/scripts/glaux.jlink.commands
clean:
rm -rf build/ksdk1.1/work