-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuilding_Apps.sh
35 lines (34 loc) · 2.63 KB
/
building_Apps.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
#!/usr/bin/env bash
cd ~
cd connectedhomeip/
source ./scripts/bootstrap.sh
gn gen out/debug --args='chip_mdns="platform" chip_inet_config_enable_ipv4=false'
ninja -C out/debug
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux/ examples/all-clusters-app/linux/out/all-clusters-app chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/bridge-app/linux/ examples/bridge-app/linux/out/bridge-app chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/tv-app/linux/ examples/tv-app/linux/out/tv-app chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ examples/tv-casting-app/linux/out/tv-casting-app chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/lighting-app/linux/ examples/lighting-app/linux/out/lighting-app chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/thermostat/linux/ examples/thermostat/linux/out/thermostat chip_inet_config_enable_ipv4=false
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux examples/ota-provider-app/linux/out/host 'chip_config_network_layer_ble=false'
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux examples/ota-requestor-app/linux/out/host 'chip_config_network_layer_ble=false'
scripts/examples/gn_build_example.sh examples/door-lock-app/linux/ out/door-lock-app chip_inet_config_enable_ipv4=false
cd ~
cd apps
ln -s ../connectedhomeip/out/debug/chip-tool chip-tool
ln -s ../connectedhomeip/out/debug/chip-shell chip-shell
ln -s ../connectedhomeip/out/debug/chip-cert chip-cert
ln -s ../connectedhomeip/examples/all-clusters-app/linux/out/all-clusters-app/chip-all-clusters-app all-cluster-app
ln -s ../connectedhomeip/examples/lighting-app/linux/out/lighting-app/chip-lighting-app lighting-app
ln -s ../connectedhomeip/examples/tv-casting-app/linux/out/tv-casting-app/chip-tv-casting-app tv-casting-app
ln -s ../connectedhomeip/examples/tv-app/linux/out/tv-app/chip-tv-app tv-app
ln -s ../connectedhomeip/examples/bridge-app/linux/out/bridge-app/chip-bridge-app bridge-app
ln -s ../connectedhomeip/examples/thermostat/linux/out/thermostat/thermostat-app thermostat-app
ln -s ../connectedhomeip/examples/ota-requestor-app/linux/out/host/chip-ota-requestor-app ota-requestor-app
ln -s ../connectedhomeip/examples/ota-provider-app/linux/out/host/chip-ota-provider-app ota-provider-app
ln -s ../connectedhomeip/out/door-lock-app/chip-door-lock-app door-lock-app
cd ~
sudo mv artifacts/rc.local /etc/
sudo chmod +x /etc/rc.local
sudo systemctl enable rc-local
rm -rf artifacts/