Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4951cbd

Browse files
committedJun 28, 2024·
Add build doc for Fabric-Admin and Fabric-Bridge-App
1 parent 3fc8d67 commit 4951cbd

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
 

‎examples/fabric-admin/README.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Matter Fabric Administrator Example
2+
3+
An example application that which supports synchronization of devices between
4+
fabrics.
5+
6+
---
7+
8+
- [Building the Example Application](#building-the-example-application)
9+
10+
---
11+
12+
## Building the Example Application
13+
14+
For Linux host example:
15+
16+
```
17+
./scripts/examples/gn_build_example.sh examples/fabric-admin out/debug/standalone chip_config_network_layer_ble=false 'import("//with_pw_rpc.gni")'
18+
```
19+
20+
For Raspberry Pi 4 example:
21+
22+
### Pull Docker Images
23+
24+
```
25+
docker pull connectedhomeip/chip-build-vscode:latest
26+
```
27+
28+
### Run docker
29+
30+
```
31+
docker run -it -v ~/connectedhomeip:/var/connectedhomeip connectedhomeip/chip-build-vscode:latest /bin/bash
32+
```
33+
34+
### Build
35+
36+
```
37+
cd /var/connectedhomeip
38+
39+
git config --global --add safe.directory /var/connectedhomeip
40+
git config --global --add safe.directory /var/connectedhomeip/third_party/pigweed/repo
41+
git config --global --add safe.directory /var/connectedhomeip/examples/common/QRCode/repo
42+
43+
./scripts/run_in_build_env.sh \
44+
"./scripts/build/build_examples.py \
45+
--target linux-arm64-fabric-admin-clang-rpc \
46+
build"
47+
```
48+
49+
### Transfer the fabric-admin binary to a Raspberry Pi
50+
51+
```
52+
scp ./fabric-admin ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu
53+
```

‎examples/fabric-bridge-app/README.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Matter Fabric Bridge Example
2+
3+
An Fabric Bridge example application that which supports synchronization of
4+
devices between fabrics.
5+
6+
---
7+
8+
- [Building the Example Application](#building-the-example-application)
9+
10+
---
11+
12+
## Building the Example Application
13+
14+
For Linux host example:
15+
16+
```
17+
./scripts/examples/gn_build_example.sh examples/fabric-bridge-app/linux out/debug/standalone chip_config_network_layer_ble=false 'import("//with_pw_rpc.gni")'
18+
```
19+
20+
For Raspberry Pi 4 example:
21+
22+
### Pull Docker Images
23+
24+
```
25+
docker pull connectedhomeip/chip-build-vscode:latest
26+
```
27+
28+
### Run docker
29+
30+
```
31+
docker run -it -v ~/connectedhomeip:/var/connectedhomeip connectedhomeip/chip-build-vscode:latest /bin/bash
32+
```
33+
34+
### Build
35+
36+
```
37+
cd /var/connectedhomeip
38+
39+
git config --global --add safe.directory /var/connectedhomeip
40+
git config --global --add safe.directory /var/connectedhomeip/third_party/pigweed/repo
41+
git config --global --add safe.directory /var/connectedhomeip/examples/common/QRCode/repo
42+
43+
./scripts/run_in_build_env.sh \
44+
"./scripts/build/build_examples.py \
45+
--target linux-arm64-fabric-bridge-no-ble-clang-rpc \
46+
build"
47+
```
48+
49+
### Transfer the fabric-bridge-app binary to a Raspberry Pi
50+
51+
```
52+
scp ./fabric-bridge-app ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu
53+
```

0 commit comments

Comments
 (0)
Please sign in to comment.