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