Skip to content

Commit e96dbbe

Browse files
Kakkoth Vayalambron, ShibuKakkoth Vayalambron, Shibu
authored andcommitted
Additional modules required for tr69hostif
1 parent b4e8612 commit e96dbbe

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

native-platform/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ autoreconf --install && \
9494
./configure --prefix=/usr/local && make && make install
9595
RUN rm -rf /opt/containers
9696

97-
RUN apt-get update && apt-get install -y libdirectfb-dev libyajl-dev libtinyxml2-dev
97+
# Packages required for tr69hostif
98+
RUN apt-get update && apt-get install -y libdirectfb-dev libyajl-dev libtinyxml2-dev libdbus-1-dev libdbus-glib-1-dev \
99+
procps libprocps-dev gcc-multilib g++-multilib
98100

99101
# Trim down the docker image size
100102
RUN rm -rf /var/lib/apt/lists/*

native-platform/dependent_rdk_pkg_installer.sh

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,39 +52,54 @@ make -C build && make -C build install
5252
cd $WORKDIR
5353
rm -rf wdmp-c
5454

55+
# Install dependencies of libparodus
56+
cd $WORKDIR
57+
git clone https://github.com/nanomsg/nanomsg.git
58+
cd nanomsg
59+
mkdir build
60+
cd build
61+
cmake ..
62+
cmake --build .
63+
cmake --build . --target install
64+
cd $WORKDIR
65+
rm -rf nanomsg
66+
67+
git clone https://github.com/xmidt-org/cimplog.git
68+
cd cimplog
69+
git checkout 8a5fb3c2f182241d17f5342bea5b7688c28cd1fd
70+
mkdir build
71+
cd build
72+
cmake ..
73+
make && make install
74+
cd $WORKDIR
75+
rm -rf cimplog
76+
77+
5578
cd $WORKDIR
56-
git clone https://github.com/schmidtw/wrp-c.git
57-
git checkout main
79+
git clone https://github.com/xmidt-org/wrp-c.git
5880
cd wrp-c
81+
git checkout 9587e8db33dbbfcd9b78ef66cc2eaf16dfb9afcf
82+
# replace 7a98138f27f27290e680bf8fbf1f8d1b089bf138 with 445880108a1d171f755ff6ac77e03fbebbb23729 in CMakeLists.txt
83+
# Message pack revision used in libparadous is not buildable with latest gcc versions
84+
sed -i 's/7a98138f27f27290e680bf8fbf1f8d1b089bf138/445880108a1d171f755ff6ac77e03fbebbb23729/g' CMakeLists.txt
5985
mkdir build
6086
cd build
6187
cmake ..
6288
make && make install
63-
mkdir -p /usr/local/include/wrp-c
64-
cp -r ../src/wrp-c.h /usr/local/include/wrp-c/
65-
cd $ROOT
89+
cd $WORKDIR
6690
rm -rf wrp-c
6791

6892
cd $WORKDIR
6993
git clone https://github.com/xmidt-org/libparodus.git
7094
cd libparodus
95+
# replace 7a98138f27f27290e680bf8fbf1f8d1b089bf138 with 445880108a1d171f755ff6ac77e03fbebbb23729 in CMakeLists.txt
96+
# Message pack revision used in libparadous is not buildable with latest gcc versions
97+
sed -i 's/7a98138f27f27290e680bf8fbf1f8d1b089bf138/445880108a1d171f755ff6ac77e03fbebbb23729/g' CMakeLists.txt
7198
mkdir build
7299
cd build
73100
cmake ..
74101
make && make install
75-
cp -r ../src/libparodus.h /usr/local/include/
76-
cp -r ../src/libparodus_log.h /usr/local/include/
77102
cd $WORKDIR
78103
rm -rf libparodus
79104

80-
81-
wget https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.17.tar.xz
82-
tar -xf procps-ng-3.3.17.tar.xz
83-
cd procps-3.3.17
84-
./configure --without-ncurses
85-
make && make install
86-
cd $WORKDIR
87-
rm -rf procps-ng-3.3.17.tar.xz procps-3.3.17
88-
89-
90105
#rtrouted -f -l DEBUG

0 commit comments

Comments
 (0)