2017-07-18 03:31:40 +03:00
|
|
|
#
|
|
|
|
# Docker x86_64 target
|
|
|
|
#
|
2017-07-18 03:31:41 +03:00
|
|
|
# This docker target builds on the debian Stretch base image. Further
|
|
|
|
# libraries which are not widely available are installed by hand.
|
2017-07-18 03:31:40 +03:00
|
|
|
#
|
2020-02-03 12:09:16 +03:00
|
|
|
FROM qemu:debian10
|
2017-07-18 03:31:40 +03:00
|
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
|
2019-07-23 17:15:27 +03:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt build-dep -yy qemu
|
2017-07-18 03:31:40 +03:00
|
|
|
|
2019-07-23 17:15:27 +03:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 03:31:40 +03:00
|
|
|
libbz2-dev \
|
|
|
|
liblzo2-dev \
|
|
|
|
librdmacm-dev \
|
2020-03-09 15:24:54 +03:00
|
|
|
libsasl2-dev \
|
2017-07-18 03:31:40 +03:00
|
|
|
libsnappy-dev \
|
|
|
|
libvte-dev
|
2017-07-18 03:31:41 +03:00
|
|
|
|
|
|
|
# virgl
|
2019-07-23 17:15:27 +03:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 03:31:41 +03:00
|
|
|
libegl1-mesa-dev \
|
|
|
|
libepoxy-dev \
|
|
|
|
libgbm-dev
|
2020-03-16 20:21:29 +03: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 20:21:31 +03:00
|
|
|
cd /usr/src/virglrenderer && git checkout virglrenderer-0.8.0
|
2020-03-16 20:21:30 +03:00
|
|
|
RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --disable-tests && make install
|
2017-07-18 03:31:42 +03:00
|
|
|
|
|
|
|
# netmap
|
2019-07-23 17:15:27 +03:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 03:31:42 +03:00
|
|
|
linux-headers-amd64
|
|
|
|
RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
|
2019-02-20 14:29:48 +03:00
|
|
|
RUN cd /usr/src/netmap && git checkout v11.3
|
2017-07-18 03:31:42 +03: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 03:31:43 +03:00
|
|
|
|
2019-01-09 19:31:02 +03:00
|
|
|
RUN ldconfig
|
|
|
|
|
2017-07-18 03:31:43 +03:00
|
|
|
# gcrypt
|
|
|
|
ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS --enable-gcrypt
|