From c76bbd13f16cdff655981c51ef3574a33cc8f693 Mon Sep 17 00:00:00 2001
From: Rahman Doost <doost@rice.edu>
Date: Wed, 19 Dec 2018 14:49:56 -0600
Subject: [PATCH] iris soapy0.7 support

---
 cmake_targets/CMakeLists.txt     |  2 +-
 cmake_targets/tools/build_helper | 20 ++++++++++----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/cmake_targets/CMakeLists.txt b/cmake_targets/CMakeLists.txt
index 8e4d1afe3d..679a6596e0 100644
--- a/cmake_targets/CMakeLists.txt
+++ b/cmake_targets/CMakeLists.txt
@@ -557,7 +557,7 @@ set(HWLIB_IRIS_SOURCE
         ${OPENAIR_TARGETS}/ARCH/IRIS/USERSPACE/LIB/iris_lib.cpp
         )
 add_library(oai_irisdevif MODULE ${HWLIB_IRIS_SOURCE})
-target_include_directories(oai_irisdevif PRIVATE /usr/local/lib/SoapySDR/modules0.6/)
+target_include_directories(oai_irisdevif PRIVATE /usr/local/lib/SoapySDR/modules0.7/)
 target_link_libraries(oai_irisdevif SoapySDR)
 
 include_directories("${OPENAIR_TARGETS}/ARCH/mobipass/")
diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index 658844531e..5189eca27d 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -386,8 +386,8 @@ install_soapy_from_source(){
     cd /tmp
     echo "Downloading SoapySDR"
     rm -rf /tmp/soapysdr
-    git clone https://github.com/pothosware/SoapySDR.git
-    cd soapysdr
+    git clone -b soapy-sdr-0.7.0 --single-branch https://github.com/pothosware/SoapySDR.git
+    cd SoapySDR
     #git checkout tags/release_003_010_001_001
     mkdir -p build
     cd build
@@ -399,8 +399,8 @@ install_soapy_from_source(){
     cd /tmp
     echo "Downloading SoapyRemote"
     rm -rf /tmp/soapyremote
-    git clone https://github.com/pothosware/SoapyRemote.git
-    cd soapyremote
+    git clone -b soapy-remote-0.5.0 --single-branch https://github.com/pothosware/SoapyRemote.git
+    cd SoapyRemote
     #git checkout tags/release_003_010_001_001
     mkdir -p build
     cd build
@@ -419,7 +419,7 @@ install_soapy_iris_from_source(){
     cd /tmp
     echo "Downloading SoapyIris"
     rm -rf /tmp/sklk-soapyiris
-    git clone https://github.com/skylarkwireless/sklk-soapyiris.git
+    git clone -b soapy-iris-2018.08.0.1 --single-branch https://github.com/skylarkwireless/sklk-soapyiris.git
     cd sklk-soapyiris
     mkdir -p build
     cd build
@@ -434,14 +434,14 @@ install_soapy_iris_from_source(){
 check_install_soapy () {
     #if [[ "$OS_DISTRO" == "ubuntu" ]]; then
         #first we remove old installation
-        $SUDO apt-get remove -y soapysdr soapysdr-server libsoapysdr-dev python-soapysdr python3-soapysdr soapysdr-module-remote || true
-        $SUDO add-apt-repository -y ppa:myriadrf/drivers
-        $SUDO apt-get update
-        $SUDO apt-get install -y soapysdr soapysdr-server libsoapysdr-dev python-soapysdr python3-soapysdr soapysdr-module-remote
+    $SUDO apt-get remove -y soapysdr soapysdr-server libsoapysdr-dev python-soapysdr python3-soapysdr soapysdr-module-remote || true
+        #$SUDO add-apt-repository -y ppa:myriadrf/drivers
+        #$SUDO apt-get update
+        #$SUDO apt-get install -y soapysdr soapysdr-server libsoapysdr-dev python-soapysdr python3-soapysdr soapysdr-module-remote
 
     #elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
     #    $SUDO $INSTALLER -y install software-properties-common python3-software-properties python-software-properties subversion git python3 python-numpy python3-numpy cmake swig python-dev
-    #    install_soapy_from_source
+    install_soapy_from_source
     #fi
     install_soapy_iris_from_source
 
-- 
GitLab