-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci/kuiper: workflow that build Scopy for Kuiper
Signed-off-by: Bindea Cristian <[email protected]>
- Loading branch information
1 parent
0a09374
commit a9ce217
Showing
9 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
SELF=$(readlink -f "$0") | ||
HERE=${SELF%/*} | ||
|
||
export QT_PLUGIN_PATH=$HERE/usr/plugins | ||
export QT_QPA_PLATFORM_PLUGIN_PATH=$HERE/usr/plugins/platforms | ||
export LD_LIBRARY_PATH=$HERE/usr/lib | ||
|
||
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH | ||
echo PATH: $PATH | ||
ldd $HERE/usr/bin/scopy | ||
exec $HERE/usr/bin/scopy |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
SRC_DIR=$(git rev-parse --show-toplevel) | ||
source $SRC_DIR/ci/kuiper/kuiper_build_config.sh | ||
|
||
BINARY=$1 | ||
LOCATION=$2 | ||
|
||
|
||
if [ ! -f "${SRC_DIR}"/ci/kuiper/ldd-mod ]; then | ||
sed 's|.*RTLDLIST=.*|RTLDLIST="/usr/arm-linux-gnueabihf/lib/ld-2.31.so /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3"|' /usr/bin/ldd | tee "${SRC_DIR}"/ci/kuiper/ldd-mod | ||
chmod +x "${SRC_DIR}"/ci/kuiper/ldd-mod | ||
fi | ||
|
||
export LD_LIBRARY_PATH="${SYSROOT}/lib:${SYSROOT}/lib/arm-linux-gnueabihf:${SYSROOT}/usr/arm-linux-gnueabihf/lib:${SYSROOT}/usr/local/qt5.15:${SYSROOT}/usr/local/lib:${SRC_DIR}/build" | ||
LIBS_ARRAY=() | ||
run_ldd(){ | ||
for library in $("${SRC_DIR}"/ci/kuiper/ldd-mod "$1" | cut -d '>' -f 2 | awk '{print $1}') | ||
do | ||
# check if the library exists at that path and if was processed already | ||
if [ -f "${library}" ] && ! [[ "${LIBS_ARRAY[*]}" =~ "${library}" ]]; then | ||
LIBS_ARRAY+=("${library}") | ||
echo "---NEW--- ${library}" | ||
if [ ! -f "${LOCATION}"/"${library##*/}" ]; then | ||
cp --verbose "${library}" "${LOCATION}" | ||
[ -L "${library}" ] && cp --verbose "$(realpath "${library}")" "${LOCATION}" | ||
fi | ||
run_ldd "${library}" | ||
fi | ||
done | ||
} | ||
|
||
for arg in $BINARY; do | ||
run_ldd "${arg}" | ||
done | ||
|
||
|
||
|
||
# " |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Icon=scopy | ||
Exec=scopy | ||
Terminal=false | ||
Type=Application | ||
Categories=Science | ||
Name=Scopy | ||
GenericName=Oscilloscope | ||
Comment=A software oscilloscope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.