-
Notifications
You must be signed in to change notification settings - Fork 10
/
make-all-zephyr.sh
101 lines (84 loc) · 2.35 KB
/
make-all-zephyr.sh
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
#!/bin/bash
ORIG=$PWD
source ~/ncs/zephyr/zephyr-env.sh
export ARCH=arm
cd herald-wearable
mkdir build-5340
mkdir build-52832
mkdir build-52840
mkdir build-52833
cd build-5340
export BOARD=nrf5340dk_nrf5340_cpuapp
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52840
export BOARD=nrf52840dongle_nrf52840
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52832
export BOARD=nrf52dk_nrf52832
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52833
export BOARD=nrf52833dk_nrf52833
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd ..
cd herald-venue-beacon
mkdir build-5340
mkdir build-52832
mkdir build-52840
mkdir build-52833
cd build-5340
export BOARD=nrf5340dk_nrf5340_cpuapp
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52840
export BOARD=nrf52840dongle_nrf52840
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52832
export BOARD=nrf52dk_nrf52832
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd build-52833
export BOARD=nrf52833dk_nrf52833
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 32
cd ..
cd ..
mkdir build-zephyr
cd build-zephyr
mkdir nrf5340dk
mkdir nrf52832dk
mkdir nrf52833dk
mkdir nrf52840dk
mkdir nrf5340dk/herald-wearable
mkdir nrf52832dk/herald-wearable
mkdir nrf52833dk/herald-wearable
mkdir nrf52840dk/herald-wearable
mkdir nrf5340dk/herald-venue-beacon
mkdir nrf52832dk/herald-venue-beacon
mkdir nrf52833dk/herald-venue-beacon
mkdir nrf52840dk/herald-venue-beacon
cp ../herald-wearable/build-5340/zephyr/merged.hex nrf5340dk/herald-wearable/
cp ../herald-wearable/build-5340/hci_rpmsg/zephyr/zephyr.hex nrf5340dk/herald-wearable/
cp ../herald-wearable/build-52840/zephyr/zephyr.hex nrf52840dk/herald-wearable/
cp ../herald-wearable/build-52832/zephyr/zephyr.hex nrf52832dk/herald-wearable/
cp ../herald-wearable/build-52833/zephyr/zephyr.hex nrf52833dk/herald-wearable/
cp ../herald-venue-beacon/build-5340/zephyr/merged.hex nrf5340dk/herald-venue-beacon/
cp ../herald-venue-beacon/build-5340/hci_rpmsg/zephyr/zephyr.hex nrf5340dk/herald-venue-beacon/
cp ../herald-venue-beacon/build-52840/zephyr/zephyr.hex nrf52840dk/herald-venue-beacon/
cp ../herald-venue-beacon/build-52832/zephyr/zephyr.hex nrf52832dk/herald-venue-beacon/
cp ../herald-venue-beacon/build-52833/zephyr/zephyr.hex nrf52833dk/herald-venue-beacon/
ls -la nrf*/*/*.hex
tar cjf zephyr-binaries.tar.gz nrf*
cd ..
echo "Done"