1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all --cross mips64el debian-11 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/debian:11-slim
8
9RUN export DEBIAN_FRONTEND=noninteractive && \
10    apt-get update && \
11    apt-get install -y eatmydata && \
12    eatmydata apt-get dist-upgrade -y && \
13    eatmydata apt-get install --no-install-recommends -y \
14            bash \
15            bc \
16            bsdextrautils \
17            bzip2 \
18            ca-certificates \
19            ccache \
20            dbus \
21            debianutils \
22            diffutils \
23            exuberant-ctags \
24            findutils \
25            gcovr \
26            genisoimage \
27            gettext \
28            git \
29            hostname \
30            libpcre2-dev \
31            libspice-protocol-dev \
32            llvm \
33            locales \
34            make \
35            meson \
36            ncat \
37            ninja-build \
38            openssh-client \
39            perl-base \
40            pkgconf \
41            python3 \
42            python3-numpy \
43            python3-opencv \
44            python3-pillow \
45            python3-pip \
46            python3-sphinx \
47            python3-sphinx-rtd-theme \
48            python3-venv \
49            python3-yaml \
50            rpm2cpio \
51            sed \
52            sparse \
53            tar \
54            tesseract-ocr \
55            tesseract-ocr-eng \
56            texinfo && \
57    eatmydata apt-get autoremove -y && \
58    eatmydata apt-get autoclean -y && \
59    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
60    dpkg-reconfigure locales
61
62ENV LANG "en_US.UTF-8"
63ENV MAKE "/usr/bin/make"
64ENV NINJA "/usr/bin/ninja"
65ENV PYTHON "/usr/bin/python3"
66ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
67
68RUN export DEBIAN_FRONTEND=noninteractive && \
69    dpkg --add-architecture mips64el && \
70    eatmydata apt-get update && \
71    eatmydata apt-get dist-upgrade -y && \
72    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
73    eatmydata apt-get install --no-install-recommends -y \
74            g++-mips64el-linux-gnuabi64 \
75            gcc-mips64el-linux-gnuabi64 \
76            libaio-dev:mips64el \
77            libasound2-dev:mips64el \
78            libattr1-dev:mips64el \
79            libbpf-dev:mips64el \
80            libbrlapi-dev:mips64el \
81            libbz2-dev:mips64el \
82            libc6-dev:mips64el \
83            libcacard-dev:mips64el \
84            libcap-ng-dev:mips64el \
85            libcapstone-dev:mips64el \
86            libcmocka-dev:mips64el \
87            libcurl4-gnutls-dev:mips64el \
88            libdaxctl-dev:mips64el \
89            libdrm-dev:mips64el \
90            libepoxy-dev:mips64el \
91            libfdt-dev:mips64el \
92            libffi-dev:mips64el \
93            libfuse3-dev:mips64el \
94            libgbm-dev:mips64el \
95            libgcrypt20-dev:mips64el \
96            libglib2.0-dev:mips64el \
97            libglusterfs-dev:mips64el \
98            libgnutls28-dev:mips64el \
99            libgtk-3-dev:mips64el \
100            libibumad-dev:mips64el \
101            libibverbs-dev:mips64el \
102            libiscsi-dev:mips64el \
103            libjemalloc-dev:mips64el \
104            libjpeg62-turbo-dev:mips64el \
105            libjson-c-dev:mips64el \
106            liblttng-ust-dev:mips64el \
107            liblzo2-dev:mips64el \
108            libncursesw5-dev:mips64el \
109            libnfs-dev:mips64el \
110            libnuma-dev:mips64el \
111            libpam0g-dev:mips64el \
112            libpixman-1-dev:mips64el \
113            libpng-dev:mips64el \
114            libpulse-dev:mips64el \
115            librbd-dev:mips64el \
116            librdmacm-dev:mips64el \
117            libsasl2-dev:mips64el \
118            libsdl2-dev:mips64el \
119            libsdl2-image-dev:mips64el \
120            libseccomp-dev:mips64el \
121            libselinux1-dev:mips64el \
122            libslirp-dev:mips64el \
123            libsnappy-dev:mips64el \
124            libspice-server-dev:mips64el \
125            libssh-gcrypt-dev:mips64el \
126            libsystemd-dev:mips64el \
127            libtasn1-6-dev:mips64el \
128            libudev-dev:mips64el \
129            liburing-dev:mips64el \
130            libusb-1.0-0-dev:mips64el \
131            libusbredirhost-dev:mips64el \
132            libvdeplug-dev:mips64el \
133            libvirglrenderer-dev:mips64el \
134            libvte-2.91-dev:mips64el \
135            libzstd-dev:mips64el \
136            nettle-dev:mips64el \
137            systemtap-sdt-dev:mips64el \
138            xfslibs-dev:mips64el \
139            zlib1g-dev:mips64el && \
140    eatmydata apt-get autoremove -y && \
141    eatmydata apt-get autoclean -y && \
142    mkdir -p /usr/local/share/meson/cross && \
143    echo "[binaries]\n\
144c = '/usr/bin/mips64el-linux-gnuabi64-gcc'\n\
145ar = '/usr/bin/mips64el-linux-gnuabi64-gcc-ar'\n\
146strip = '/usr/bin/mips64el-linux-gnuabi64-strip'\n\
147pkgconfig = '/usr/bin/mips64el-linux-gnuabi64-pkg-config'\n\
148\n\
149[host_machine]\n\
150system = 'linux'\n\
151cpu_family = 'mips64'\n\
152cpu = 'mips64el'\n\
153endian = 'little'" > /usr/local/share/meson/cross/mips64el-linux-gnuabi64 && \
154    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
155    mkdir -p /usr/libexec/ccache-wrappers && \
156    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-c++ && \
157    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-cc && \
158    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-g++ && \
159    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-gcc
160
161ENV ABI "mips64el-linux-gnuabi64"
162ENV MESON_OPTS "--cross-file=mips64el-linux-gnuabi64"
163ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips64el-linux-gnuabi64-
164ENV DEF_TARGET_LIST mips64el-softmmu,mips64el-linux-user
165