1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all --cross armv7l 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 armhf && \
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++-arm-linux-gnueabihf \
75            gcc-arm-linux-gnueabihf \
76            libaio-dev:armhf \
77            libasan5:armhf \
78            libasound2-dev:armhf \
79            libattr1-dev:armhf \
80            libbpf-dev:armhf \
81            libbrlapi-dev:armhf \
82            libbz2-dev:armhf \
83            libc6-dev:armhf \
84            libcacard-dev:armhf \
85            libcap-ng-dev:armhf \
86            libcapstone-dev:armhf \
87            libcurl4-gnutls-dev:armhf \
88            libdaxctl-dev:armhf \
89            libdrm-dev:armhf \
90            libepoxy-dev:armhf \
91            libfdt-dev:armhf \
92            libffi-dev:armhf \
93            libfuse3-dev:armhf \
94            libgbm-dev:armhf \
95            libgcrypt20-dev:armhf \
96            libglib2.0-dev:armhf \
97            libglusterfs-dev:armhf \
98            libgnutls28-dev:armhf \
99            libgtk-3-dev:armhf \
100            libibumad-dev:armhf \
101            libibverbs-dev:armhf \
102            libiscsi-dev:armhf \
103            libjemalloc-dev:armhf \
104            libjpeg62-turbo-dev:armhf \
105            liblttng-ust-dev:armhf \
106            liblzo2-dev:armhf \
107            libncursesw5-dev:armhf \
108            libnfs-dev:armhf \
109            libnuma-dev:armhf \
110            libpam0g-dev:armhf \
111            libpixman-1-dev:armhf \
112            libpng-dev:armhf \
113            libpulse-dev:armhf \
114            librbd-dev:armhf \
115            librdmacm-dev:armhf \
116            libsasl2-dev:armhf \
117            libsdl2-dev:armhf \
118            libsdl2-image-dev:armhf \
119            libseccomp-dev:armhf \
120            libselinux1-dev:armhf \
121            libslirp-dev:armhf \
122            libsnappy-dev:armhf \
123            libspice-server-dev:armhf \
124            libssh-gcrypt-dev:armhf \
125            libsystemd-dev:armhf \
126            libtasn1-6-dev:armhf \
127            libubsan1:armhf \
128            libudev-dev:armhf \
129            liburing-dev:armhf \
130            libusb-1.0-0-dev:armhf \
131            libusbredirhost-dev:armhf \
132            libvdeplug-dev:armhf \
133            libvirglrenderer-dev:armhf \
134            libvte-2.91-dev:armhf \
135            libxen-dev:armhf \
136            libzstd-dev:armhf \
137            nettle-dev:armhf \
138            systemtap-sdt-dev:armhf \
139            xfslibs-dev:armhf \
140            zlib1g-dev:armhf && \
141    eatmydata apt-get autoremove -y && \
142    eatmydata apt-get autoclean -y && \
143    mkdir -p /usr/local/share/meson/cross && \
144    echo "[binaries]\n\
145c = '/usr/bin/arm-linux-gnueabihf-gcc'\n\
146ar = '/usr/bin/arm-linux-gnueabihf-gcc-ar'\n\
147strip = '/usr/bin/arm-linux-gnueabihf-strip'\n\
148pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'\n\
149\n\
150[host_machine]\n\
151system = 'linux'\n\
152cpu_family = 'arm'\n\
153cpu = 'armhf'\n\
154endian = 'little'" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
155    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
156    mkdir -p /usr/libexec/ccache-wrappers && \
157    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-c++ && \
158    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-cc && \
159    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-g++ && \
160    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-gcc
161
162ENV ABI "arm-linux-gnueabihf"
163ENV MESON_OPTS "--cross-file=arm-linux-gnueabihf"
164ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
165ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user
166