forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for hardkernel odroid-c4 (home-assistant#42719)
- Loading branch information
1 parent
704f474
commit 3f12648
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
ARG BUILD_VERSION | ||
FROM homeassistant/aarch64-homeassistant:$BUILD_VERSION | ||
|
||
RUN apk --no-cache add \ | ||
usbutils | ||
|
||
## | ||
# Build libcec for HDMI-CEC | ||
ARG LIBCEC_VERSION=6.0.2 | ||
RUN apk add --no-cache \ | ||
eudev-libs \ | ||
p8-platform \ | ||
&& apk add --no-cache --virtual .build-dependencies \ | ||
build-base \ | ||
cmake \ | ||
eudev-dev \ | ||
swig \ | ||
p8-platform-dev \ | ||
linux-headers \ | ||
&& git clone --depth 1 -b libcec-${LIBCEC_VERSION} https://github.com/Pulse-Eight/libcec /usr/src/libcec \ | ||
&& cd /usr/src/libcec \ | ||
&& mkdir -p /usr/src/libcec/build \ | ||
&& cd /usr/src/libcec/build \ | ||
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \ | ||
-DPYTHON_LIBRARY="/usr/local/lib/libpython3.8.so" \ | ||
-DPYTHON_INCLUDE_DIR="/usr/local/include/python3.8" \ | ||
-DHAVE_LINUX_API=1 \ | ||
-DHAVE_AOCEC_API=1 \ | ||
.. \ | ||
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& echo "cec" > "/usr/local/lib/python3.8/site-packages/cec.pth" \ | ||
&& apk del .build-dependencies \ | ||
&& rm -rf /usr/src/libcec* |