Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kuiper-stages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ chroot "${BUILD_DIR}" << EOF
elif ([ -e "${1}"/packages-iio-oscilloscope ] && [ "${CONFIG_IIO_OSCILLOSCOPE}" = y ])
then
xargs -a "${1}"/packages-iio-oscilloscope apt-get install --no-install-recommends -y
elif ([ -e "${1}"/packages-scopy ] && [ "${CONFIG_SCOPY}" = y ])
then
xargs -a "${1}"/packages-scopy apt-get install -y
elif ([ -e "${1}"/packages-libm2k ] && [ "${CONFIG_LIBM2K}" = y ])
then
xargs -a "${1}"/packages-libm2k apt-get install --no-install-recommends -y
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
libfuse2
libxcb-icccm4
libxcb-image0
libxcb-keysyms1
libxcb-render-util0
libxcb-xinerama0
libxkbcommon-x11-0
libxcb-xkb1
10 changes: 10 additions & 0 deletions stages/05.adi-tools/10.install-scopy/files/scopy.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=2.0
Icon=/usr/local/share/scopy/icons/scopy.png
Exec=/usr/local/bin/<name>
Terminal=false
Type=Application
Categories=Science
Name=Scopy
GenericName=Oscilloscope
Comment=A software oscilloscope
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 20 additions & 15 deletions stages/05.adi-tools/10.install-scopy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,31 @@
# Copyright (c) 2024 Analog Devices, Inc.
# Author: Larisa Radu <larisa.radu@analog.com>

export SCOPY_RELEASE=v1.4.0
export SCOPY_ARCHIVE=Scopy-${SCOPY_RELEASE}-Linux-arm.zip
export SCOPY=https://github.com/analogdevicesinc/scopy/releases/download/${SCOPY_RELEASE}/${SCOPY_ARCHIVE}
export SCOPY_RELEASE=v2.0.0-beta-rc2
export SCOPY_ARCHIVE=Scopy-${SCOPY_RELEASE}-Linux-${TARGET_ARCHITECTURE}-AppImage.zip
export SCOPY_PATH=https://github.com/analogdevicesinc/scopy/releases/download/${SCOPY_RELEASE}/${SCOPY_ARCHIVE}
export SCOPY=Scopy-${SCOPY_RELEASE}-Linux-${TARGET_ARCHITECTURE}

if [ "${CONFIG_SCOPY}" = y ]; then
if [ "${CONFIG_LIBIIO}" = y ]; then

mount -t proc proc "${BUILD_DIR}"/proc

chroot "${BUILD_DIR}" << EOF
wget ${SCOPY}
unzip ${SCOPY_ARCHIVE}
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install Scopy.flatpak --assumeyes
rm -rf ${SCOPY_ARCHIVE}

echo "alias scopy='flatpak run org.adi.Scopy'" >> /etc/bash.bashrc
echo "alias Scopy='flatpak run org.adi.Scopy'" >> /etc/bash.bashrc

umount /proc

# Install Scopy 2
wget -q ${SCOPY_PATH}
unzip ${SCOPY_ARCHIVE} && mv ${SCOPY}/* . && rm ${SCOPY_ARCHIVE}
chmod +x ${SCOPY}.AppImage
mv ${SCOPY}.AppImage /usr/local/bin

# Add desktop file and icon
mkdir -p /usr/local/share/scopy/icons/
mkdir -p /usr/local/share/applications/
cp stages/05.adi-tools/10.install-scopy/files/scopy.desktop /usr/local/share/applications/
cp stages/05.adi-tools/10.install-scopy/files/scopy.png /usr/local/share/scopy/icons/scopy.png
sed -i 's/<name>/${SCOPY}.AppImage/g' /usr/local/share/applications/scopy.desktop

echo "alias scopy='/usr/local/bin/${SCOPY}.AppImage'" >> /etc/bash.bashrc
echo "alias Scopy='/usr/local/bin/${SCOPY}.AppImage'" >> /etc/bash.bashrc
EOF

else
Expand Down
Loading