-
Notifications
You must be signed in to change notification settings - Fork 2
RDK-52984 : Coverity framework integration for remote debugger #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 21 commits
323befb
c32e21f
47f08b6
00dc0cf
3dc0531
3c72f30
5d4c4dd
c92a636
88be462
e89bf96
9356723
d4a11c2
9074565
8b46f00
e7173b9
e825012
fd72aa5
97bea1a
7c316d2
94ee9ae
70d9fda
03c63f3
bbb7b9a
cd12dee
9381f10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
|
|
||
| name: Build Component in Native Environment | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ develop ] | ||
| paths: ['**/*.c', '**/*.cpp', '**/*.cc', '**/*.cxx', '**/*.h', '**/*.hpp'] | ||
|
|
||
| jobs: | ||
| build-systemtimemgr-on-pr: | ||
| name: Build Remote-debugger component in github rdkcentral | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/rdkcentral/docker-rdk-ci:latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: native build | ||
| run: | | ||
| chmod +x cov_build.sh | ||
| sh -e cov_build.sh | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| WORKDIR=`pwd` | ||
| # Build and install critical dependency | ||
| export ROOT=/usr | ||
| export INSTALL_DIR=${ROOT}/local | ||
| mkdir -p $INSTALL_DIR | ||
|
|
||
| cd $ROOT | ||
| #Build rbus | ||
| git clone https://github.com/rdkcentral/rbus | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With use of ghcr.io/rdkcentral/docker-device-mgt-service-test/native-platform:lates, rbus should be already available as part of the container |
||
| cmake -Hrbus -Bbuild/rbus -DBUILD_FOR_DESKTOP=ON -DCMAKE_BUILD_TYPE=Debug | ||
| make -C build/rbus && make -C build/rbus install | ||
| #Build wdmp-c | ||
| git clone https://github.com/xmidt-org/wdmp-c.git | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be a package needed by more than 1 module. Lets move it to https://github.com/rdkcentral/docker-device-mgt-service-test/tree/develop/native-platform |
||
| cd wdmp-c | ||
| mkdir build | ||
| cd build | ||
| cmake .. | ||
| make | ||
| make install | ||
| sed -i '/WDMP_ERR_SESSION_IN_PROGRESS/a\ WDMP_ERR_INTERNAL_ERROR,\n WDMP_ERR_DEFAULT_VALUE,' /usr/local/include/wdmp-c/wdmp-c.h | ||
| cd $ROOT | ||
| #Build rdk-logger | ||
| git clone https://github.com/rdkcentral/rdk_logger.git | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly redundant package . |
||
| apt install liblog4c-dev | ||
| cd $ROOT/rdk_logger | ||
| autoreconf -i | ||
| ./configure | ||
| make LOG4C_LIBS="-L/usr/lib/x86_64-linux-gnu" | ||
| make install | ||
| #Build Webconfig framework | ||
| cd ${ROOT} | ||
| git clone https://github.com/rdkcentral/WebconfigFramework.git | ||
| cd WebconfigFramework | ||
| autoreconf -i | ||
| export CFLAGS="-I/usr/local/include/rbus -I/usr/local/include/rtmessage" | ||
| ./configure --prefix=/usr/local | ||
| make && make install | ||
| #Build libsyswrapper | ||
| cd ${ROOT} | ||
| git clone https://github.com/rdkcentral/libSyscallWrapper.git | ||
| cd ${ROOT}/libSyscallWrapper | ||
| autoupdate | ||
| autoreconf -i | ||
| ./configure --prefix=${INSTALL_DIR} | ||
| make && make install | ||
| #Build rfc | ||
| cd ${ROOT} | ||
| git clone https://github.com/rdkcentral/rfc.git | ||
| cd rfc | ||
| autoreconf -i | ||
| ./configure --enable-rfctool=yes --enable-tr181set=yes | ||
| cd rfcapi | ||
| cp /usr/local/lib/pkgconfig/libcjson.pc /usr/local/lib/pkgconfig/cjson.pc | ||
| make librfcapi_la_CPPFLAGS="-I/usr/include/cjson -I/usr/rfc/rfcMgr/gtest/mocks" | ||
| make install | ||
| cd /usr/rfc/tr181api | ||
| g++ -fPIC -shared -o libtr181api.so tr181api.cpp -I/usr/local/include/wdmp-c | ||
| mv ./libtr181api.so /usr/local/lib | ||
| mv ./tr181api.h /usr/local/include | ||
| #Build trower-base64 | ||
| cd ${ROOT} | ||
| git clone https://github.com/xmidt-org/trower-base64.git | ||
| cd ${ROOT}/trower-base64 | ||
| meson setup build | ||
| ninja -C build | ||
| ninja -C build install | ||
| cd $ROOT | ||
| git clone https://github.com/rdkcentral/iarmmgrs.git | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have changes to decouple from Iarm . Why are we still needing this clone here ? |
||
| cd $WORKDIR | ||
| autoreconf -i | ||
| autoupdate | ||
| ./configure --prefix=${INSTALL_DIR} | ||
| make remotedebugger_CFLAGS="-I/usr/include/cjson -I/usr/local/include/wdmp-c -I/usr/local/include/rbus -I/usr/WebconfigFramework/include -I/usr/iarmmgrs/rdmmgr/include -I/usr/iarmmgrs/hal/include -I/usr/local/include/trower-base64" remotedebugger_LDFLAGS="-L/usr/local/lib -lsafec -lrdkloggers -lcjson -lrfcapi -lrbus -lmsgpackc -lsecure_wrapper -lwebconfig_framework -ltr181api -L/usr/local/lib/x86_64-linux-gnu -ltrower-base64 -L/usr/lib/x86_64-linux-gnu" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dependent modules are built and installed. We may not need to refer to include files from the source checkout locations |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use ghcr.io/rdkcentral/docker-device-mgt-service-test/native-platform:latest instead