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 libcmocka-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 libjson-c-dev:arm64 \ 107 liblttng-ust-dev:arm64 \ 108 liblzo2-dev:arm64 \ 109 libncursesw5-dev:arm64 \ 110 libnfs-dev:arm64 \ 111 libnuma-dev:arm64 \ 112 libpam0g-dev:arm64 \ 113 libpixman-1-dev:arm64 \ 114 libpng-dev:arm64 \ 115 libpulse-dev:arm64 \ 116 librbd-dev:arm64 \ 117 librdmacm-dev:arm64 \ 118 libsasl2-dev:arm64 \ 119 libsdl2-dev:arm64 \ 120 libsdl2-image-dev:arm64 \ 121 libseccomp-dev:arm64 \ 122 libselinux1-dev:arm64 \ 123 libslirp-dev:arm64 \ 124 libsnappy-dev:arm64 \ 125 libspice-server-dev:arm64 \ 126 libssh-gcrypt-dev:arm64 \ 127 libsystemd-dev:arm64 \ 128 libtasn1-6-dev:arm64 \ 129 libubsan1:arm64 \ 130 libudev-dev:arm64 \ 131 liburing-dev:arm64 \ 132 libusb-1.0-0-dev:arm64 \ 133 libusbredirhost-dev:arm64 \ 134 libvdeplug-dev:arm64 \ 135 libvirglrenderer-dev:arm64 \ 136 libvte-2.91-dev:arm64 \ 137 libxen-dev:arm64 \ 138 libzstd-dev:arm64 \ 139 nettle-dev:arm64 \ 140 systemtap-sdt-dev:arm64 \ 141 xfslibs-dev:arm64 \ 142 zlib1g-dev:arm64 && \ 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/aarch64-linux-gnu-gcc'\n\ 148ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'\n\ 149strip = '/usr/bin/aarch64-linux-gnu-strip'\n\ 150pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'\n\ 151\n\ 152[host_machine]\n\ 153system = 'linux'\n\ 154cpu_family = 'aarch64'\n\ 155cpu = 'aarch64'\n\ 156endian = 'little'" > /usr/local/share/meson/cross/aarch64-linux-gnu && \ 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/aarch64-linux-gnu-c++ && \ 160 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \ 161 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-g++ && \ 162 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc 163 164ENV ABI "aarch64-linux-gnu" 165ENV MESON_OPTS "--cross-file=aarch64-linux-gnu" 166ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu- 167ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user 168