forked from intel/media-delivery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
88 lines (72 loc) · 3.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright (c) 2022 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# This file is automatically generated from .m4 template.
# To update, modify the template and regenerate.
ARG IMAGE=ubuntu:20.04
FROM $IMAGE AS base
RUN mkdir -p /opt/build && mkdir -p /opt/dist
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates git && \
rm -rf /var/lib/apt/lists/*
# build firmware
ARG INTEL_GPU_FW_REPO=https://github.com/intel-gpu/intel-gpu-firmware.git
RUN cd /opt/build && \
git clone ${INTEL_GPU_FW_REPO} && \
cd intel-gpu-firmware && \
git checkout 22WW33_419.38 && \
cp -rd firmware /opt/dist
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates build-essential debhelper devscripts dkms git make && \
rm -rf /var/lib/apt/lists/*
# build i915 backports
ARG I915_BACKPORTS_REPO=https://github.com/intel-gpu/intel-gpu-i915-backports.git
RUN cd /opt/build && \
git clone ${I915_BACKPORTS_REPO} && \
cd intel-gpu-i915-backports && \
git checkout UBUNTU2204_22WW34_419_5949_220707.2 && \
make i915dkmsdeb-pkg && \
mv /opt/build/intel-i915-dkms* /opt/dist
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates build-essential debhelper dkms git make && \
rm -rf /var/lib/apt/lists/*
# build cse backports
ARG CSE_BACKPORTS_REPO=https://github.com/intel-gpu/intel-gpu-cse-backports.git
RUN cd /opt/build && \
git clone ${CSE_BACKPORTS_REPO} && \
cd intel-gpu-cse-backports && \
git checkout 22WW33_419.38_UBUNTU514 && \
BUILD_VERSION=1 make -f Makefile.dkms dkmsdeb-pkg && \
mv /opt/build/intel-gpu-cse-backports/*.deb /opt/dist
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates build-essential debhelper devscripts dkms git make && \
rm -rf /var/lib/apt/lists/*
# build pmt backports
ARG PMT_BACKPORTS_REPO=https://github.com/intel-gpu/intel-gpu-pmt-backports.git
RUN cd /opt/build && \
git clone ${PMT_BACKPORTS_REPO} && \
cd intel-gpu-pmt-backports && \
git checkout 22WW33_419.38_UBUNTU514 && \
BUILD_VERSION=1 make -f Makefile.dkms dkmsdeb-pkg && \
mv /opt/build/intel-gpu-pmt-backports/*.deb /opt/dist