-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_dependencies.sh
More file actions
executable file
·40 lines (29 loc) · 1.11 KB
/
build_dependencies.sh
File metadata and controls
executable file
·40 lines (29 loc) · 1.11 KB
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
#!/bin/bash
set -x
set -e
WORKDIR=`pwd`
export ROOT=/usr
export INSTALL_DIR=${ROOT}/local
mkdir -p $INSTALL_DIR
cd $ROOT
rm -rf iarmbus
git clone https://github.com/rdkcentral/iarmbus.git
cd $ROOT
rm -rf iarmmgrs
git clone https://github.com/rdkcentral/iarmmgrs.git
export IARMBUS_PATH=$ROOT/iarmbus
export IARMMGRS_PATH=$ROOT/iarmmgrs
cd $ROOT
rm -rf devicesettings
git clone https://github.com/rdkcentral/devicesettings.git
cd $ROOT
rm -rf rdk-halif-device_settings
git clone https://github.com/rdkcentral/rdk-halif-device_settings.git
# Build and deploy stubs for IARMBus
echo "Building IARMBus stubs"
cd $WORKDIR
cd ./stubs
g++ -fPIC -shared -o libIARMBus.so iarm_stubs.cpp -I$WORKDIR/stubs -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I$IARMBUS_PATH/core -I$IARMBUS_PATH/core/include -I$ROOT/devicesettings/rpc/include -I$ROOT/rdk-halif-device_settings/include/ -fpermissive
g++ -fPIC -shared -o libWPEFrameworkPowerController.so powerctrl_stubs.cpp -I$WORKDIR/stubs -fpermissive
cp libIARMBus.so /usr/local/lib
cp libWPEFrameworkPowerController.so /usr/local/lib/libWPEFrameworkPowerController.so