qemu with hax to log dma reads & writes
jcs.org/2018/11/12/vfio
1#
2# Docker mipsel cross-compiler target
3#
4# This docker target builds on the debian Stretch base image.
5#
6FROM qemu:debian10
7
8MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
9
10# Add the foreign architecture we want and install dependencies
11RUN dpkg --add-architecture mipsel
12RUN apt update && \
13 DEBIAN_FRONTEND=noninteractive eatmydata \
14 apt install -y --no-install-recommends \
15 gcc-mipsel-linux-gnu
16
17RUN apt update && \
18 DEBIAN_FRONTEND=noninteractive eatmydata \
19 apt build-dep -yy -a mipsel --arch-only qemu
20
21# Specify the cross prefix for this image (see tests/docker/common.rc)
22ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu-
23
24# Install extra libraries to increase code coverage
25RUN apt update && \
26 DEBIAN_FRONTEND=noninteractive eatmydata \
27 apt install -y --no-install-recommends \
28 libbz2-dev:mipsel \
29 liblzo2-dev:mipsel \
30 librdmacm-dev:mipsel \
31 libsnappy-dev:mipsel