Change RPi handling CEC (#468)

* Update Dockerfile

* Update config.json

* Update CHANGELOG.md
This commit is contained in:
Pascal Vizeli
2018-11-21 00:49:04 +01:00
committed by GitHub
parent beb4933c33
commit d0424b83d5
3 changed files with 5 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
# Changelog
## 2
- Use new native Alpine RPi library for 64bit
## 1
- Add support for Raspberry-pi 64bit
- Update libCEC to 4.0.3

View File

@@ -9,21 +9,8 @@ ARG BUILD_ARCH
##
# RPi support for HDMI-CEC on armhf/aarch64
RUN if [ "$BUILD_ARCH" == "armhf" ]; then \
RUN if [ "$BUILD_ARCH" == "armhf" ] || [ "$BUILD_ARCH" == "aarch64" ]; then \
apk add --no-cache raspberrypi-dev raspberrypi-libs; \
elif [ "$BUILD_ARCH" == "aarch64" ]; then \
apk add --no-cache --virtual .build-dependencies \
cmake make g++ git linux-headers \
&& git clone --depth 1 https://github.com/raspberrypi/userland /usr/src/userland \
&& mkdir -p /usr/src/userland/build \
&& cd /usr/src/userland/build \
&& cmake \
-DCMAKE_C_FLAGS="$CFLAGS -D_GNU_SOURCE -Wno-error=array-bounds" \
-DCMAKE_BUILD_TYPE=Release -DARM64=True -DCMAKE_INSTALL_RPATH=/opt/vc/lib .. \
&& make -j$(nproc) \
&& make install \
&& apk del .build-dependencies \
&& rm -rf /usr/src/userland; \
fi
##

View File

@@ -1,6 +1,6 @@
{
"name": "CEC Scanner",
"version": "1",
"version": "2",
"slug": "cec_scan",
"description": "Scan HDMI CEC devices",
"url": "https://home-assistant.io/addons/cec_scan/",