2017-07-18 00:31:40 +00:00
|
|
|
#
|
|
|
|
# Docker x86_64 target
|
|
|
|
#
|
2021-01-14 16:57:26 +00:00
|
|
|
# This docker target builds on the Debian Buster base image. Further
|
2017-07-18 00:31:41 +00:00
|
|
|
# libraries which are not widely available are installed by hand.
|
2017-07-18 00:31:40 +00:00
|
|
|
#
|
2020-07-01 13:56:29 +00:00
|
|
|
FROM qemu/debian10
|
2017-07-18 00:31:40 +00:00
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
|
2019-07-23 14:15:27 +00:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt build-dep -yy qemu
|
2017-07-18 00:31:40 +00:00
|
|
|
|
2019-07-23 14:15:27 +00:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2021-01-14 16:57:26 +00:00
|
|
|
cscope \
|
2020-10-07 16:00:22 +00:00
|
|
|
genisoimage \
|
2021-01-14 16:57:26 +00:00
|
|
|
exuberant-ctags \
|
|
|
|
global \
|
2017-07-18 00:31:40 +00:00
|
|
|
libbz2-dev \
|
|
|
|
liblzo2-dev \
|
2020-03-23 16:15:11 +00:00
|
|
|
libgcrypt20-dev \
|
2021-01-21 17:44:51 +00:00
|
|
|
libfdt-dev \
|
2017-07-18 00:31:40 +00:00
|
|
|
librdmacm-dev \
|
2020-03-09 12:24:54 +00:00
|
|
|
libsasl2-dev \
|
2017-07-18 00:31:40 +00:00
|
|
|
libsnappy-dev \
|
2020-07-15 04:35:01 +00:00
|
|
|
libvte-dev \
|
|
|
|
netcat-openbsd \
|
2020-10-22 16:25:44 +00:00
|
|
|
openssh-client \
|
|
|
|
python3-numpy \
|
|
|
|
python3-opencv \
|
2020-07-15 04:35:01 +00:00
|
|
|
python3-venv
|
2017-07-18 00:31:41 +00:00
|
|
|
|
|
|
|
# virgl
|
2019-07-23 14:15:27 +00:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 00:31:41 +00:00
|
|
|
libegl1-mesa-dev \
|
|
|
|
libepoxy-dev \
|
|
|
|
libgbm-dev
|
2020-03-16 17:21:29 +00:00
|
|
|
RUN git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git /usr/src/virglrenderer && \
|
tests/docker: Update VirGL to v0.8.0
Building the qemu:debian-amd64 fails when building VirGL:
make[2]: Entering directory '/usr/src/virglrenderer/src/gallium/auxiliary'
CC cso_cache/cso_cache.lo
CC cso_cache/cso_hash.lo
CC os/os_misc.lo
CC util/u_debug.lo
CC util/u_debug_describe.lo
CC util/u_format.lo
GEN util/u_format_table.c
Traceback (most recent call last):
File "./util/u_format_table.py", line 168, in <module>
main()
File "./util/u_format_table.py", line 164, in main
write_format_table(formats)
File "./util/u_format_table.py", line 132, in write_format_table
print(" %s,\t/* is_array */" % (bool_map(format.is_array()),))
File "/usr/src/virglrenderer/src/gallium/auxiliary/util/u_format_parse.py", line 164, in is_array
return self.array_element() != None
File "/usr/src/virglrenderer/src/gallium/auxiliary/util/u_format_parse.py", line 73, in __eq__
return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.size == other.size
AttributeError: 'NoneType' object has no attribute 'type'
make[2]: Leaving directory '/usr/src/virglrenderer/src/gallium/auxiliary'
make[2]: *** [Makefile:906: util/u_format_table.c] Error 1
make[1]: *** [Makefile:631: install-recursive] Error 1
VirGL commits a8962eda1..a613dcc82 fix this problem.
Update to VirGL 0.8.0 which contains them.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200212202709.12665-4-philmd@redhat.com>
Message-Id: <20200316172155.971-5-alex.bennee@linaro.org>
2020-03-16 17:21:31 +00:00
|
|
|
cd /usr/src/virglrenderer && git checkout virglrenderer-0.8.0
|
2020-03-16 17:21:30 +00:00
|
|
|
RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --disable-tests && make install
|
2017-07-18 00:31:42 +00:00
|
|
|
|
|
|
|
# netmap
|
2019-07-23 14:15:27 +00:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 00:31:42 +00:00
|
|
|
linux-headers-amd64
|
|
|
|
RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
|
2019-02-20 11:29:48 +00:00
|
|
|
RUN cd /usr/src/netmap && git checkout v11.3
|
2017-07-18 00:31:42 +00:00
|
|
|
RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install
|
|
|
|
ENV QEMU_CONFIGURE_OPTS --enable-netmap
|
2017-07-18 00:31:43 +00:00
|
|
|
|
2019-01-09 16:31:02 +00:00
|
|
|
RUN ldconfig
|
|
|
|
|
2017-07-18 00:31:43 +00:00
|
|
|
# gcrypt
|
|
|
|
ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS --enable-gcrypt
|