From d2715df7bb5283538f4a54c7e09dea96876aa3e2 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Wed, 27 Sep 2023 21:39:47 +0000 Subject: [PATCH 1/3] Add SignalHound soapy driver. --- docker/Dockerfile.base | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index 4b4205dc..d0d32965 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -47,13 +47,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ librtlsdr-dev \ libuhd-dev \ libusb-1.0-0-dev \ - pkg-config + pkg-config \ + unzip \ + wget WORKDIR /root +RUN git clone https://github.com/SignalHound/soapy-bb60 RUN git clone https://github.com/pothosware/SoapyBladeRF -b soapy-bladerf-0.4.1 RUN git clone https://github.com/pothosware/SoapyRTLSDR -b soapy-rtl-sdr-0.3.3 RUN git clone https://github.com/pothosware/SoapyUHD -b soapy-uhd-0.4.1 RUN git clone https://github.com/Nuand/bladeRF.git -b 2023.02 RUN git clone https://github.com/anarkiwi/lime-tools -b samples +RUN wget https://signalhound.com/sigdownloads/SDK/signal_hound_sdk_08_25_23.zip -Osdk.zip && unzip sdk.zip && rm sdk.zip && cp signal_hound_sdk/device_apis/bb_series/include/* /usr/local/include/ && cp signal_hound_sdk/device_apis/bb_series/lib/linux/Ubuntu*18.04/* /usr/local/lib +RUN ldconfig -v -n /usr/local/lib +RUN ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so +WORKDIR /root/soapy-bb60/SoapyBB60C/build +RUN cmake .. && make -j "$(nproc)" && make install WORKDIR /root/SoapyBladeRF/build RUN cmake .. && make -j "$(nproc)" && make install WORKDIR /root/SoapyRTLSDR/build From 2e0e487c2a60dcd8f272476256e50d811d217ceb Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Wed, 27 Sep 2023 22:05:09 +0000 Subject: [PATCH 2/3] SignalHound only supported on x86_64. --- docker/Dockerfile.base | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index d0d32965..d8777687 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -57,11 +57,9 @@ RUN git clone https://github.com/pothosware/SoapyRTLSDR -b soapy-rtl-sdr-0.3.3 RUN git clone https://github.com/pothosware/SoapyUHD -b soapy-uhd-0.4.1 RUN git clone https://github.com/Nuand/bladeRF.git -b 2023.02 RUN git clone https://github.com/anarkiwi/lime-tools -b samples -RUN wget https://signalhound.com/sigdownloads/SDK/signal_hound_sdk_08_25_23.zip -Osdk.zip && unzip sdk.zip && rm sdk.zip && cp signal_hound_sdk/device_apis/bb_series/include/* /usr/local/include/ && cp signal_hound_sdk/device_apis/bb_series/lib/linux/Ubuntu*18.04/* /usr/local/lib -RUN ldconfig -v -n /usr/local/lib -RUN ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so +RUN wget https://signalhound.com/sigdownloads/SDK/signal_hound_sdk_08_25_23.zip -Osdk.zip && unzip sdk.zip && rm sdk.zip WORKDIR /root/soapy-bb60/SoapyBB60C/build -RUN cmake .. && make -j "$(nproc)" && make install +RUN if [ "$(arch)" = "x86_64" ] ; then cp /root/signal_hound_sdk/device_apis/bb_series/include/* /usr/local/include/ && cp /root/signal_hound_sdk/device_apis/bb_series/lib/linux/Ubuntu*18.04/* /usr/local/lib && ldconfig -v -n /usr/local/lib && ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so && cmake .. && make -j "$(nproc)" && make install ; fi WORKDIR /root/SoapyBladeRF/build RUN cmake .. && make -j "$(nproc)" && make install WORKDIR /root/SoapyRTLSDR/build From 9fbbd3d589c539bc6a5b357268486f7968f2c1b8 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Wed, 27 Sep 2023 22:08:35 +0000 Subject: [PATCH 3/3] spce. --- docker/Dockerfile.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index d8777687..e2477b5b 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -59,7 +59,7 @@ RUN git clone https://github.com/Nuand/bladeRF.git -b 2023.02 RUN git clone https://github.com/anarkiwi/lime-tools -b samples RUN wget https://signalhound.com/sigdownloads/SDK/signal_hound_sdk_08_25_23.zip -Osdk.zip && unzip sdk.zip && rm sdk.zip WORKDIR /root/soapy-bb60/SoapyBB60C/build -RUN if [ "$(arch)" = "x86_64" ] ; then cp /root/signal_hound_sdk/device_apis/bb_series/include/* /usr/local/include/ && cp /root/signal_hound_sdk/device_apis/bb_series/lib/linux/Ubuntu*18.04/* /usr/local/lib && ldconfig -v -n /usr/local/lib && ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so && cmake .. && make -j "$(nproc)" && make install ; fi +RUN if [ "$(arch)" = "x86_64" ] ; then cp /root/signal_hound_sdk/device_apis/bb_series/include/* /usr/local/include/ && cp /root/signal_hound_sdk/device_apis/bb_series/lib/linux/Ubuntu*18.04/* /usr/local/lib && ldconfig -v -n /usr/local/lib && ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so && cmake .. && make -j "$(nproc)" && make install ; fi WORKDIR /root/SoapyBladeRF/build RUN cmake .. && make -j "$(nproc)" && make install WORKDIR /root/SoapyRTLSDR/build