Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e9f2e9
commit 2cb4d0e
Showing
296 changed files
with
150 additions
and
168,340 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,76 @@ | ||
language: c++ | ||
compiler: gcc | ||
sudo: require | ||
dist: trusty | ||
|
||
before_install: | ||
- sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y | ||
- sudo apt-get update -qq | ||
|
||
install: | ||
- sudo apt-get install qt4-qmake build-essential g++ | ||
- sudo apt-get install libsndfile1-dev qt4-default libfftw3-dev portaudio19-dev | ||
- sudo apt-get install zlib1g-dev libusb-1.0-0-dev mesa-common-dev | ||
- sudo apt-get install libgl1-mesa-dev libqt4-opengl-dev libsamplerate-dev libqwt-dev | ||
|
||
- sudo apt-get install libtool | ||
- sudo apt-get install autoconf | ||
|
||
- tar zxvf faad2-2.8.8.tar.gz | ||
- cd faad2-2.8.8 | ||
- ./configure | ||
- make | ||
- sudo make install | ||
- sudo ldconfig | ||
- cd .. | ||
- rm -rf faad2-2.8.8 | ||
|
||
- tar zxvf rtl-sdr.tgz | ||
- cd rtl-sdr | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON | ||
- make | ||
- sudo make install | ||
- rm -rf rtl-sdr | ||
|
||
- tar zxvf hackrf.tgz | ||
- cd host | ||
- mkdir build | ||
- cd build | ||
- cmake .. -DINSTALL_UDEV_RULES=ON | ||
- make | ||
- sudo make install | ||
- rm -rf host | ||
|
||
- cp CMakeLists.txt-qt4 CMakeLists.txt | ||
- cmake . -DCMAKE_INSTALL_PREFIX=/usr | ||
- make -j4 | ||
- ls -lh . | ||
- mkdir -p appdir/usr/bin | ||
- cp swradio-8 appdir/usr/bin/swradio-8 | ||
- mkdir -p appdir/usr/lib | ||
- mkdir -p appdir/usr/share/applications ; cp swradio.desktop appdir/usr/share/applications | ||
- cp swradio.png appdir/qt-dab.png | ||
- touch appdir/swradio.png # Dear upstream developers, please provide an application icon | ||
- ls -l appdir/usr/lib | ||
- # after_success: | ||
- ls -l | ||
- ls -l appdir | ||
- ls -l appdir/usr | ||
- ls -l appimage | ||
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" | ||
- chmod a+x linuxdeployqt*.AppImage | ||
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH | ||
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/* -bundle-non-qt-libs | ||
- # Workaround for https://github.com/probonopd/linuxdeployqt/issues/31#issuecomment-289267637 | ||
- ./linuxdeployqt*.AppImage --appimage-extract | ||
# - find appdir/usr/plugins/ -type f -exec squashfs-root/usr/bin/patchelf --set-rpath '$ORIGIN/../../lib' {} \; | ||
- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/* -bundle-non-qt-libs | ||
- chmod a+x appimage/* ; rm appdir/AppRun ; cp appimage/* appdir/ | ||
- export PATH=squashfs-root/usr/bin/:$PATH # Make it pick up our private patched mksquashfs; https://github.com/plougher/squashfs-tools/pull/13/files | ||
- squashfs-root/usr/bin/appimagetool $(readlink -f ./appdir/) | ||
- find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq | ||
- curl --upload-file ./swradio*.AppImage https://transfer.sh/swradio-8.$(git rev-parse --short HEAD)-x86_64.AppImage | ||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh | ||
- bash ./upload.sh ./swradio*.AppImage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
HERE="$(dirname "$(readlink -f "${0}")")" | ||
cp "${HERE}/udev-rules-helper" /tmp/ | ||
# Try to run using sudo, if this does not work ask the user for password | ||
sudo -n -E -- "/tmp/udev-rules-helper" || pkexec "/tmp/udev-rules-helper" | ||
rm "/tmp/udev-rules-helper" | ||
exec "${HERE}/usr/bin/swradio-8" "$@" | ||
~ | ||
~ |
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,39 @@ | ||
#!/bin/bash | ||
|
||
HERE="$(dirname "$(readlink -f "${0}")")" | ||
|
||
rmmod dvb_usb_rtl28xxu || true | ||
|
||
cat > /tmp/10-rtl-sdr.rules <<\EOF | ||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE="0666", SYMLINK+="rtl_sdr" | ||
EOF | ||
|
||
mv /tmp/10-rtl-sdr.rules /etc/udev/rules.d/10-rtl-sdr.rules | ||
|
||
cat > /tmp/53-hackrf.rules <<\EOF | ||
# HackRF Jawbreaker | ||
ATTR{idVendor}=="1d50", ATTR{idProduct}=="604b", SYMLINK+="hackrf-jawbreaker-%k", MODE="660" | ||
# HackRF One | ||
ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660" | ||
# rad1o | ||
ATTR{idVendor}=="1d50", ATTR{idProduct}=="cc15", SYMLINK+="rad1o-%k", MODE="660" | ||
# NXP Semiconductors DFU mode (HackRF and rad1o) | ||
ATTR{idVendor}=="1fc9", ATTR{idProduct}=="000c", SYMLINK+="nxp-dfu-%k", MODE="660" | ||
# rad1o "full flash" mode | ||
KERNEL=="sd?", SUBSYSTEM=="block", ENV{ID_VENDOR_ID}=="1fc9", ENV{ID_MODEL_ID}=="0042", SYMLINK+="rad1o-flash-%k", MODE="660" | ||
# rad1o flash disk | ||
KERNEL=="sd?", SUBSYSTEM=="block", ENV{ID_VENDOR_ID}=="1fc9", ENV{ID_MODEL_ID}=="0082", SYMLINK+="rad1o-msc-%k", MODE="660" | ||
EOF | ||
|
||
mv /tmp/53-hackrf.rules /etc/udev/rules.d/53-hackrf.rules | ||
|
||
cat > /tmp/66-mirics.rules <<\EOF | ||
SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="2500",MODE:="0666" | ||
SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3010",MODE:="0666" | ||
SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="3000",MODE:="0666" | ||
EOF | ||
|
||
mv /tmp/66-mirics.rules /etc/udev/rules.d/66-mirics.rules | ||
|
||
udevadm control --reload-rules | ||
udevadm trigger --attr-match=subsystem=usb |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.