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 libcurl4-gnutls-dev:mipsel \ 87 libdaxctl-dev:mipsel \ 88 libdrm-dev:mipsel \ 89 libepoxy-dev:mipsel \ 90 libfdt-dev:mipsel \ 91 libffi-dev:mipsel \ 92 libfuse3-dev:mipsel \ 93 libgbm-dev:mipsel \ 94 libgcrypt20-dev:mipsel \ 95 libglib2.0-dev:mipsel \ 96 libglusterfs-dev:mipsel \ 97 libgnutls28-dev:mipsel \ 98 libgtk-3-dev:mipsel \ 99 libibumad-dev:mipsel \ 100 libibverbs-dev:mipsel \ 101 libiscsi-dev:mipsel \ 102 libjemalloc-dev:mipsel \ 103 libjpeg62-turbo-dev:mipsel \ 104 liblttng-ust-dev:mipsel \ 105 liblzo2-dev:mipsel \ 106 libncursesw5-dev:mipsel \ 107 libnfs-dev:mipsel \ 108 libnuma-dev:mipsel \ 109 libpam0g-dev:mipsel \ 110 libpixman-1-dev:mipsel \ 111 libpng-dev:mipsel \ 112 libpulse-dev:mipsel \ 113 librbd-dev:mipsel \ 114 librdmacm-dev:mipsel \ 115 libsasl2-dev:mipsel \ 116 libsdl2-dev:mipsel \ 117 libsdl2-image-dev:mipsel \ 118 libseccomp-dev:mipsel \ 119 libselinux1-dev:mipsel \ 120 libslirp-dev:mipsel \ 121 libsnappy-dev:mipsel \ 122 libspice-server-dev:mipsel \ 123 libssh-gcrypt-dev:mipsel \ 124 libsystemd-dev:mipsel \ 125 libtasn1-6-dev:mipsel \ 126 libudev-dev:mipsel \ 127 liburing-dev:mipsel \ 128 libusb-1.0-0-dev:mipsel \ 129 libusbredirhost-dev:mipsel \ 130 libvdeplug-dev:mipsel \ 131 libvirglrenderer-dev:mipsel \ 132 libvte-2.91-dev:mipsel \ 133 libzstd-dev:mipsel \ 134 nettle-dev:mipsel \ 135 systemtap-sdt-dev:mipsel \ 136 xfslibs-dev:mipsel \ 137 zlib1g-dev:mipsel && \ 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/mipsel-linux-gnu-gcc'\n\ 143ar = '/usr/bin/mipsel-linux-gnu-gcc-ar'\n\ 144strip = '/usr/bin/mipsel-linux-gnu-strip'\n\ 145pkgconfig = '/usr/bin/mipsel-linux-gnu-pkg-config'\n\ 146\n\ 147[host_machine]\n\ 148system = 'linux'\n\ 149cpu_family = 'mips'\n\ 150cpu = 'mipsel'\n\ 151endian = 'little'" > /usr/local/share/meson/cross/mipsel-linux-gnu && \ 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/mipsel-linux-gnu-c++ && \ 155 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-cc && \ 156 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-g++ && \ 157 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-gcc 158 159ENV ABI "mipsel-linux-gnu" 160ENV MESON_OPTS "--cross-file=mipsel-linux-gnu" 161ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu- 162ENV DEF_TARGET_LIST mipsel-softmmu,mipsel-linux-user 163