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