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