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            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            libspice-protocol-dev \
35            llvm \
36            locales \
37            make \
38            meson \
39            ncat \
40            ninja-build \
41            openssh-client \
42            perl-base \
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            texinfo && \
60    eatmydata apt-get autoremove -y && \
61    eatmydata apt-get autoclean -y && \
62    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
63    dpkg-reconfigure locales
64
65ENV LANG "en_US.UTF-8"
66ENV MAKE "/usr/bin/make"
67ENV NINJA "/usr/bin/ninja"
68ENV PYTHON "/usr/bin/python3"
69ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
70
71RUN export DEBIAN_FRONTEND=noninteractive && \
72    dpkg --add-architecture armhf && \
73    eatmydata apt-get update && \
74    eatmydata apt-get dist-upgrade -y && \
75    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
76    eatmydata apt-get install --no-install-recommends -y \
77            g++-arm-linux-gnueabihf \
78            gcc-arm-linux-gnueabihf \
79            libaio-dev:armhf \
80            libasan5:armhf \
81            libasound2-dev:armhf \
82            libattr1-dev:armhf \
83            libbpf-dev:armhf \
84            libbrlapi-dev:armhf \
85            libbz2-dev:armhf \
86            libc6-dev:armhf \
87            libcacard-dev:armhf \
88            libcap-ng-dev:armhf \
89            libcapstone-dev:armhf \
90            libcmocka-dev:armhf \
91            libcurl4-gnutls-dev:armhf \
92            libdaxctl-dev:armhf \
93            libdrm-dev:armhf \
94            libepoxy-dev:armhf \
95            libfdt-dev:armhf \
96            libffi-dev:armhf \
97            libfuse3-dev:armhf \
98            libgbm-dev:armhf \
99            libgcrypt20-dev:armhf \
100            libglib2.0-dev:armhf \
101            libglusterfs-dev:armhf \
102            libgnutls28-dev:armhf \
103            libgtk-3-dev:armhf \
104            libibumad-dev:armhf \
105            libibverbs-dev:armhf \
106            libiscsi-dev:armhf \
107            libjemalloc-dev:armhf \
108            libjpeg62-turbo-dev:armhf \
109            libjson-c-dev:armhf \
110            liblttng-ust-dev:armhf \
111            liblzo2-dev:armhf \
112            libncursesw5-dev:armhf \
113            libnfs-dev:armhf \
114            libnuma-dev:armhf \
115            libpam0g-dev:armhf \
116            libpixman-1-dev:armhf \
117            libpng-dev:armhf \
118            libpulse-dev:armhf \
119            librbd-dev:armhf \
120            librdmacm-dev:armhf \
121            libsasl2-dev:armhf \
122            libsdl2-dev:armhf \
123            libsdl2-image-dev:armhf \
124            libseccomp-dev:armhf \
125            libselinux1-dev:armhf \
126            libslirp-dev:armhf \
127            libsnappy-dev:armhf \
128            libspice-server-dev:armhf \
129            libssh-gcrypt-dev:armhf \
130            libsystemd-dev:armhf \
131            libtasn1-6-dev:armhf \
132            libubsan1:armhf \
133            libudev-dev:armhf \
134            liburing-dev:armhf \
135            libusb-1.0-0-dev:armhf \
136            libusbredirhost-dev:armhf \
137            libvdeplug-dev:armhf \
138            libvirglrenderer-dev:armhf \
139            libvte-2.91-dev:armhf \
140            libxen-dev:armhf \
141            libzstd-dev:armhf \
142            nettle-dev:armhf \
143            systemtap-sdt-dev:armhf \
144            xfslibs-dev:armhf \
145            zlib1g-dev:armhf && \
146    eatmydata apt-get autoremove -y && \
147    eatmydata apt-get autoclean -y && \
148    mkdir -p /usr/local/share/meson/cross && \
149    echo "[binaries]\n\
150c = '/usr/bin/arm-linux-gnueabihf-gcc'\n\
151ar = '/usr/bin/arm-linux-gnueabihf-gcc-ar'\n\
152strip = '/usr/bin/arm-linux-gnueabihf-strip'\n\
153pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'\n\
154\n\
155[host_machine]\n\
156system = 'linux'\n\
157cpu_family = 'arm'\n\
158cpu = 'armhf'\n\
159endian = 'little'" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
160    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
161    mkdir -p /usr/libexec/ccache-wrappers && \
162    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-c++ && \
163    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-cc && \
164    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-g++ && \
165    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-gcc
166
167ENV ABI "arm-linux-gnueabihf"
168ENV MESON_OPTS "--cross-file=arm-linux-gnueabihf"
169ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
170ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user
171