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