mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add new machine generic-x86-64 to build matrix (#47095)
The Intel NUC machine runs on most UEFI capable x86-64 machines today. Lets start a new machine generic-x86-64 which will replace intel-nuc over time.
This commit is contained in:
parent
71cf982a28
commit
6e77ca70fc
@ -114,10 +114,12 @@ stages:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
strategy:
|
strategy:
|
||||||
maxParallel: 15
|
maxParallel: 17
|
||||||
matrix:
|
matrix:
|
||||||
qemux86-64:
|
qemux86-64:
|
||||||
buildMachine: 'qemux86-64'
|
buildMachine: 'qemux86-64'
|
||||||
|
generic-x86-64:
|
||||||
|
buildMachine: 'generic-x86-64'
|
||||||
intel-nuc:
|
intel-nuc:
|
||||||
buildMachine: 'intel-nuc'
|
buildMachine: 'intel-nuc'
|
||||||
qemux86:
|
qemux86:
|
||||||
|
34
machine/generic-x86-64
Normal file
34
machine/generic-x86-64
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
ARG BUILD_VERSION
|
||||||
|
FROM agners/amd64-homeassistant:$BUILD_VERSION
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
libva-intel-driver \
|
||||||
|
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 \
|
||||||
|
.. \
|
||||||
|
&& 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*
|
@ -1,6 +1,9 @@
|
|||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
FROM homeassistant/amd64-homeassistant:$BUILD_VERSION
|
FROM homeassistant/amd64-homeassistant:$BUILD_VERSION
|
||||||
|
|
||||||
|
# NOTE: intel-nuc will be replaced by generic-x86-64. Make sure to apply
|
||||||
|
# changes in generic-x86-64 as well.
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
libva-intel-driver \
|
libva-intel-driver \
|
||||||
usbutils
|
usbutils
|
||||||
|
Loading…
x
Reference in New Issue
Block a user