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