Skip to content

Commit

Permalink
Support SoapySDR devices #198 #199
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantintegral authored Oct 20, 2024
2 parents 67a6296 + c77bc0f commit 9b3a853
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rtl_433/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.5.3] - 2024-10-20

* Support SoapySDR devices #198 #199

## [0.5.2] - 2024-06-23

* Upgrade base images to support RTL-SDR V4 #181
Expand Down
23 changes: 22 additions & 1 deletion rtl_433/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ ENV LANG C.UTF-8
RUN apk add --no-cache --virtual .buildDeps \
build-base \
libusb-dev \
hackrf \
hackrf-dev \
librtlsdr-dev \
soapy-sdr \
soapy-sdr-dev \
cmake \
git

WORKDIR /build

FROM builder as rtl_433_builder

RUN git clone https://github.com/merbanan/rtl_433
WORKDIR ./rtl_433

Expand All @@ -28,15 +34,30 @@ WORKDIR /build/root
WORKDIR /build/rtl_433/build
RUN make DESTDIR=/build/root/ install

FROM builder as soapy_hackrf_builder
RUN git clone https://github.com/pothosware/SoapyHackRF.git
WORKDIR SoapyHackRF
RUN git checkout 6c0c33f0aa44c3080674e6bca0273184d3e9eb44
WORKDIR build
RUN cmake ..
RUN make -j4
RUN make install

FROM $BUILD_FROM

ENV LANG C.UTF-8

RUN apk add --no-cache libusb \
hackrf \
librtlsdr \
soapy-sdr \
sed
WORKDIR /root
COPY --from=builder /build/root/ /
COPY --from=rtl_433_builder /build/root/ /

COPY --from=soapy_hackrf_builder /usr/lib /lib-s
RUN mkdir -p /usr/local/lib/SoapySDR/modules0.8/
COPY --from=soapy_hackrf_builder /usr/local/lib/SoapySDR/modules0.8/libHackRFSupport.so /usr/local/lib/SoapySDR/modules0.8/

# Run script
COPY run.sh /
Expand Down
9 changes: 9 additions & 0 deletions rtl_433/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"build_from": {
"aarch64": "ghcr.io/home-assistant/aarch64-base:3.19",
"amd64": "ghcr.io/home-assistant/amd64-base:3.19",
"armhf": "ghcr.io/home-assistant/armhf-base:3.19",
"armv7": "ghcr.io/home-assistant/armv7-base:3.19",
"i386": "ghcr.io/home-assistant/i386-base:3.19"
}
}

0 comments on commit 9b3a853

Please sign in to comment.