-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild_matter_plugin.sh
executable file
·46 lines (35 loc) · 1.18 KB
/
build_matter_plugin.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
#!/bin/bash
git submodule update --init
pushd .
cd ./matter_sdk
git submodule update --init
source ./scripts/activate.sh
popd
source ./matter_sdk/scripts/bootstrap.sh
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/ -DENABLE_CMAKE_VERBOSE_MAKEFILE=ON -DENABLE_CMOCKA=OFF -DENABLE_MBEDTLS=OFF -DENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DENABLE_MATTER_EXAMPLES=ON -DSYSTEMV_DAEMON=OFF
make
cd ..
cp build/libcertifier.a ./matter_plugin/certifier-tool
cp build/libcertifier.a ./matter_plugin/certifier-all-clusters-app
pushd .
cd build
./certifierUtil get-cert -f -k seed.p12 -p changeit -o dac-commissioner.p12 --product-id 1101 --profile-name XFN_AS_PAI_1
./certifierUtil get-cert -f -k seed.p12 -p changeit -o dac-commissionee.p12 --product-id 1101 --profile-name XFN_AS_PAI_1
cd ../matter_plugin/certification-declaration-gen
make install all PRODUCT_ID=4353
cp *.array ../common/
cd ../certifier-tool
gn gen --check out/build
ninja -C out/build
cd ./out/build
cp certifier-tool ../../../../build
cd ../../../certifier-all-clusters-app
gn gen --check out/build
ninja -C out/build
cd ./out/build
cp certifier-all-clusters-app ../../../../build
cd ../..
cp trafficlight ../../build
popd