aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-02-03 17:19:49 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-02-04 15:00:46 +0200
commitde062f76ee98ec2382d9aa38ce1714fbfe6bb561 (patch)
tree7d25674e11cd496f1ef17ee9117d56e63256890f /scripts
parent8391b354856677b877e38fb887c476ddab251ad8 (diff)
ci: run odp_sysinfo example after native builds
Run odp_sysinfo application after native ODP builds in the CI. This application can provide more useful information in the CI log (e.g. CPU model) compared to the previously used odp_hello application. When cross compiling, the odp_sysinfo application is only built. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/build.sh4
-rwxr-xr-xscripts/ci/build_riscv64.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index d92d830d4..db8702b78 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -16,9 +16,9 @@ make -j $(nproc)
make install
pushd ${HOME}
-${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_dynamic `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux`
+${CC} ${CFLAGS} ${OLDPWD}/example/sysinfo/odp_sysinfo.c -o odp_sysinfo_inst_dynamic `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux`
if [ -z "$TARGET_ARCH" ] || [ "$TARGET_ARCH" == "$BUILD_ARCH" ]
then
- LD_LIBRARY_PATH="/opt/odp/lib:$LD_LIBRARY_PATH" ./odp_hello_inst_dynamic
+ LD_LIBRARY_PATH="/opt/odp/lib:$LD_LIBRARY_PATH" ./odp_sysinfo_inst_dynamic
fi
popd
diff --git a/scripts/ci/build_riscv64.sh b/scripts/ci/build_riscv64.sh
index 474633727..bf6fdf941 100755
--- a/scripts/ci/build_riscv64.sh
+++ b/scripts/ci/build_riscv64.sh
@@ -28,5 +28,5 @@ make -j $(nproc)
make install
pushd ${HOME}
-${CC} ${CFLAGS} ${OLDPWD}/example/hello/odp_hello.c -o odp_hello_inst_dynamic `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux`
+${CC} ${CFLAGS} ${OLDPWD}/example/sysinfo/odp_sysinfo.c -o odp_sysinfo_inst_dynamic `PKG_CONFIG_PATH=/opt/odp/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --cflags --libs libodp-linux`
popd