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