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