1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross-arch mipsel debian-12 qemu 4# 5# https://gitlab.com/libvirt/libvirt-ci 6 7FROM docker.io/library/debian:12-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 bindgen \ 17 bison \ 18 bsdextrautils \ 19 bzip2 \ 20 ca-certificates \ 21 ccache \ 22 dbus \ 23 debianutils \ 24 diffutils \ 25 exuberant-ctags \ 26 findutils \ 27 flex \ 28 gcc \ 29 gcovr \ 30 gettext \ 31 git \ 32 hostname \ 33 libglib2.0-dev \ 34 llvm \ 35 locales \ 36 make \ 37 meson \ 38 mtools \ 39 ncat \ 40 ninja-build \ 41 openssh-client \ 42 pkgconf \ 43 python3 \ 44 python3-numpy \ 45 python3-opencv \ 46 python3-pillow \ 47 python3-pip \ 48 python3-sphinx \ 49 python3-sphinx-rtd-theme \ 50 python3-venv \ 51 python3-yaml \ 52 rpm2cpio \ 53 rustc \ 54 sed \ 55 socat \ 56 sparse \ 57 swtpm \ 58 tar \ 59 tesseract-ocr \ 60 tesseract-ocr-eng \ 61 xorriso \ 62 zstd && \ 63 eatmydata apt-get autoremove -y && \ 64 eatmydata apt-get autoclean -y && \ 65 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ 66 dpkg-reconfigure locales && \ 67 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED 68 69ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 70ENV LANG "en_US.UTF-8" 71ENV MAKE "/usr/bin/make" 72ENV NINJA "/usr/bin/ninja" 73ENV PYTHON "/usr/bin/python3" 74 75RUN export DEBIAN_FRONTEND=noninteractive && \ 76 dpkg --add-architecture mipsel && \ 77 eatmydata apt-get update && \ 78 eatmydata apt-get dist-upgrade -y && \ 79 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \ 80 eatmydata apt-get install --no-install-recommends -y \ 81 gcc-mipsel-linux-gnu \ 82 libaio-dev:mipsel \ 83 libasound2-dev:mipsel \ 84 libattr1-dev:mipsel \ 85 libbpf-dev:mipsel \ 86 libbrlapi-dev:mipsel \ 87 libbz2-dev:mipsel \ 88 libc6-dev:mipsel \ 89 libcacard-dev:mipsel \ 90 libcap-ng-dev:mipsel \ 91 libcapstone-dev:mipsel \ 92 libcbor-dev:mipsel \ 93 libcmocka-dev:mipsel \ 94 libcurl4-gnutls-dev:mipsel \ 95 libdaxctl-dev:mipsel \ 96 libdrm-dev:mipsel \ 97 libepoxy-dev:mipsel \ 98 libfdt-dev:mipsel \ 99 libffi-dev:mipsel \ 100 libfuse3-dev:mipsel \ 101 libgbm-dev:mipsel \ 102 libgcrypt20-dev:mipsel \ 103 libglib2.0-dev:mipsel \ 104 libglusterfs-dev:mipsel \ 105 libgnutls28-dev:mipsel \ 106 libgtk-3-dev:mipsel \ 107 libgtk-vnc-2.0-dev:mipsel \ 108 libibverbs-dev:mipsel \ 109 libiscsi-dev:mipsel \ 110 libjemalloc-dev:mipsel \ 111 libjpeg62-turbo-dev:mipsel \ 112 libjson-c-dev:mipsel \ 113 liblttng-ust-dev:mipsel \ 114 liblzo2-dev:mipsel \ 115 libncursesw5-dev:mipsel \ 116 libnfs-dev:mipsel \ 117 libnuma-dev:mipsel \ 118 libpam0g-dev:mipsel \ 119 libpcre2-dev:mipsel \ 120 libpipewire-0.3-dev:mipsel \ 121 libpixman-1-dev:mipsel \ 122 libpng-dev:mipsel \ 123 libpulse-dev:mipsel \ 124 librbd-dev:mipsel \ 125 librdmacm-dev:mipsel \ 126 libsasl2-dev:mipsel \ 127 libsdl2-dev:mipsel \ 128 libsdl2-image-dev:mipsel \ 129 libseccomp-dev:mipsel \ 130 libselinux1-dev:mipsel \ 131 libslirp-dev:mipsel \ 132 libsnappy-dev:mipsel \ 133 libsndio-dev:mipsel \ 134 libspice-protocol-dev:mipsel \ 135 libspice-server-dev:mipsel \ 136 libssh-gcrypt-dev:mipsel \ 137 libsystemd-dev:mipsel \ 138 libtasn1-6-dev:mipsel \ 139 libudev-dev:mipsel \ 140 liburing-dev:mipsel \ 141 libusb-1.0-0-dev:mipsel \ 142 libusbredirhost-dev:mipsel \ 143 libvdeplug-dev:mipsel \ 144 libvirglrenderer-dev:mipsel \ 145 libvte-2.91-dev:mipsel \ 146 libxdp-dev:mipsel \ 147 libzstd-dev:mipsel \ 148 nettle-dev:mipsel \ 149 systemtap-sdt-dev:mipsel \ 150 zlib1g-dev:mipsel && \ 151 eatmydata apt-get autoremove -y && \ 152 eatmydata apt-get autoclean -y && \ 153 mkdir -p /usr/local/share/meson/cross && \ 154 printf "[binaries]\n\ 155c = '/usr/bin/mipsel-linux-gnu-gcc'\n\ 156ar = '/usr/bin/mipsel-linux-gnu-gcc-ar'\n\ 157strip = '/usr/bin/mipsel-linux-gnu-strip'\n\ 158pkgconfig = '/usr/bin/mipsel-linux-gnu-pkg-config'\n\ 159\n\ 160[host_machine]\n\ 161system = 'linux'\n\ 162cpu_family = 'mips'\n\ 163cpu = 'mipsel'\n\ 164endian = 'little'\n" > /usr/local/share/meson/cross/mipsel-linux-gnu && \ 165 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 166 mkdir -p /usr/libexec/ccache-wrappers && \ 167 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-cc && \ 168 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-gcc 169 170ENV ABI "mipsel-linux-gnu" 171ENV MESON_OPTS "--cross-file=mipsel-linux-gnu" 172ENV RUST_TARGET "mipsel-unknown-linux-gnu" 173ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu- 174ENV DEF_TARGET_LIST mipsel-softmmu,mipsel-linux-user 175# As a final step configure the user (if env is defined) 176ARG USER 177ARG UID 178RUN if [ "${USER}" ]; then \ 179 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 180