forked from Qorvo/QMatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_install_spake2p.sh
76 lines (74 loc) · 1.74 KB
/
build_install_spake2p.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
#!/bin/bash
# Prerequisites for matter bootstrap.sh,
# install packages from connectedhomeip/integrations/docker/images/chip-build/Dockerfile
DEBIAN_FRONTEND=noninteractive sudo apt install -y \
autoconf \
automake \
bison \
bridge-utils \
ccache \
clang \
clang-format \
clang-tidy \
curl \
flex \
g++ \
git \
gperf \
iproute2 \
jq \
lcov \
libavahi-client-dev \
libavahi-common-dev \
libcairo2-dev \
libdbus-1-dev \
libdbus-glib-1-dev \
libdmalloc-dev \
libgif-dev \
libglib2.0-dev \
libical-dev \
libjpeg-dev \
libmbedtls-dev \
libncurses5-dev \
libncursesw5-dev \
libnl-3-dev \
libnl-route-3-dev \
libnspr4-dev \
libpango1.0-dev \
libpixman-1-dev \
libreadline-dev \
libssl-dev \
libtool \
libudev-dev \
libusb-1.0-0 \
libusb-dev \
libxml2-dev \
make \
net-tools \
ninja-build \
openjdk-8-jdk \
pkg-config \
python3.9 \
python3.9-dev \
python3.9-venv \
rsync \
shellcheck \
strace \
systemd \
udev \
unzip \
wget \
git-lfs \
zlib1g-dev
# limit chip activate.sh modifications to subshell
(
# shellcheck source=/dev/null
. scripts/bootstrap.sh || (echo spake2p build: chip bootstrap failed; exit 1)
# shellcheck source=/dev/null
. scripts/activate.sh|| (echo spake2p build: chip activate failed; exit 1)
cd src/tools/spake2p || (echo spake2p build: chdir to spake2p directory failed; exit 1)
log "building spake2p"
gn gen out || (echo spake2p build: gn gen failed; exit 1)
ninja -C out || (echo spake2p build: ninja build failed; exit 1)
sudo cp out/spake2p /usr/bin || (echo installing spake2p failed; exit 1)
)