From 42eeb00a0f5904cd6c1c5abd4931e3c92ccb1623 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 8 Feb 2020 19:47:16 +0100 Subject: [PATCH] add limesdr build --- build.sh | 1 + docker/Dockerfiles/Dockerfile-full | 1 + docker/Dockerfiles/Dockerfile-limesdr | 10 +++++ .../scripts/install-dependencies-limesdr.sh | 37 +++++++++++++++++++ push.sh | 2 +- 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 docker/Dockerfiles/Dockerfile-limesdr create mode 100755 docker/scripts/install-dependencies-limesdr.sh diff --git a/build.sh b/build.sh index 1997bbc..69576c1 100755 --- a/build.sh +++ b/build.sh @@ -14,4 +14,5 @@ docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-hackrf:$ARCHTAG docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-airspy:$ARCHTAG -f docker/Dockerfiles/Dockerfile-airspy . docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-rtlsdr-soapy:$ARCHTAG -f docker/Dockerfiles/Dockerfile-rtlsdr-soapy . docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-plutosdr:$ARCHTAG -f docker/Dockerfiles/Dockerfile-plutosdr . +docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-limesdr:$ARCHTAG -f docker/Dockerfiles/Dockerfile-limesdr . docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/openwebrx-full:$ARCHTAG -t jketterl/openwebrx:$ARCHTAG -f docker/Dockerfiles/Dockerfile-full . diff --git a/docker/Dockerfiles/Dockerfile-full b/docker/Dockerfiles/Dockerfile-full index c538b2d..e0a72f8 100644 --- a/docker/Dockerfiles/Dockerfile-full +++ b/docker/Dockerfiles/Dockerfile-full @@ -11,6 +11,7 @@ RUN /install-dependencies-sdrplay.sh RUN /install-dependencies-airspy.sh RUN /install-dependencies-rtlsdr-soapy.sh RUN /install-dependencies-plutosdr.sh +RUN /install-dependencies-limesdr.sh RUN rm /install-dependencies-*.sh ADD docker/scripts/install-connectors.sh / diff --git a/docker/Dockerfiles/Dockerfile-limesdr b/docker/Dockerfiles/Dockerfile-limesdr new file mode 100644 index 0000000..dabb9c5 --- /dev/null +++ b/docker/Dockerfiles/Dockerfile-limesdr @@ -0,0 +1,10 @@ +ARG ARCHTAG +FROM openwebrx-soapysdr-base:$ARCHTAG + +ADD docker/scripts/install-dependencies-limesdr.sh / +RUN /install-dependencies-limesdr.sh +RUN rm /install-dependencies-limesdr.sh + +ADD docker/scripts/install-connectors.sh / +RUN /install-connectors.sh +RUN rm /install-connectors.sh diff --git a/docker/scripts/install-dependencies-limesdr.sh b/docker/scripts/install-dependencies-limesdr.sh new file mode 100755 index 0000000..6d3a093 --- /dev/null +++ b/docker/scripts/install-dependencies-limesdr.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -euo pipefail + +function cmakebuild() { + cd $1 + if [[ ! -z "${2:-}" ]]; then + git checkout $2 + fi + mkdir build + cd build + cmake .. + make + make install + cd ../.. + rm -rf $1 +} + +cd /tmp + +STATIC_PACKAGES="libusb" +BUILD_PACKAGES="git libusb-dev cmake make gcc musl-dev g++ linux-headers" + +apk add --no-cache $STATIC_PACKAGES +apk add --no-cache --virtual .build-deps $BUILD_PACKAGES + +git clone https://github.com/myriadrf/LimeSuite.git +cd LimeSuite +git checkout 1c1c202f9a6ae4bb34068b6f3f576f7f8e74c7f1 +mkdir builddir +cd builddir +cmake .. -DENABLE_EXAMPLES=OFF -DENABLE_DESKTOP=OFF -DENABLE_LIME_UTIL=OFF -DENABLE_QUICKTEST=OFF -DENABLE_OCTAVE=OFF -DENABLE_GUI=OFF -DCMAKE_CXX_STANDARD_LIBRARIES="-latomic" +make +make install +cd ../.. +rm -rf LimeSuite + +apk del .build-deps diff --git a/push.sh b/push.sh index 93e3954..915c38a 100755 --- a/push.sh +++ b/push.sh @@ -7,7 +7,7 @@ ALL_ARCHS="x86_64 armv7l aarch64" TAG="latest" ARCHTAG="$TAG-$ARCH" -IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-full openwebrx" +IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-full openwebrx" for image in ${IMAGES}; do docker push jketterl/$image:$ARCHTAG