@@ -88,12 +88,45 @@ defined:
88
88
89
89
- Build the example application:
90
90
91
- ` ` ` sh
92
- cd ~ /connectedhomeip/examples/fabric-bridge-app/linux
93
- git submodule update --init
94
- source third_party/connectedhomeip/scripts/activate.sh
95
- gn gen out/debug
96
- ninja -C out/debug
91
+ # ## For Linux host example:
92
+
93
+ ```
94
+ ./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")'
95
+ ```
96
+
97
+ # ## For Raspberry Pi 4 example:
98
+
99
+ Pull Docker Images
100
+
101
+ ```
102
+ docker pull connectedhomeip/chip-build-vscode:latest
103
+ ```
104
+
105
+ Run docker
106
+
107
+ ```
108
+ docker run -it -v ~ /connectedhomeip:/var/connectedhomeip connectedhomeip/chip-build-vscode:latest /bin/bash
109
+ ```
110
+
111
+ Build
112
+
113
+ ```
114
+ cd /var/connectedhomeip
115
+
116
+ git config --global --add safe.directory /var/connectedhomeip
117
+ git config --global --add safe.directory /var/connectedhomeip/third_party/pigweed/repo
118
+ git config --global --add safe.directory /var/connectedhomeip/examples/common/QRCode/repo
119
+
120
+ ./scripts/run_in_build_env.sh \
121
+ " ./scripts/build/build_examples.py \
122
+ --target linux-arm64-fabric-bridge-no-ble-clang-rpc \
123
+ build"
124
+ ```
125
+
126
+ Transfer the fabric-bridge-app binary to a Raspberry Pi
127
+
128
+ ```
129
+ scp ./fabric-bridge-app ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu
97
130
```
98
131
99
132
- To delete generated executable, libraries and object files use:
@@ -116,4 +149,4 @@ defined:
116
149
sudo out/debug/fabric-bridge-app
117
150
` ` `
118
151
119
- - Test the device using ChipDeviceController on your laptop / workstation etc.
152
+ - Test the device using FabricAdmin on your laptop / workstation etc.
0 commit comments