1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all --cross armv7l 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                      genisoimage \
29                      gettext \
30                      git \
31                      hostname \
32                      libglib2.0-dev \
33                      libpcre2-dev \
34                      libsndio-dev \
35                      libspice-protocol-dev \
36                      llvm \
37                      locales \
38                      make \
39                      meson \
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                      sparse \
56                      tar \
57                      tesseract-ocr \
58                      tesseract-ocr-eng && \
59    eatmydata apt-get autoremove -y && \
60    eatmydata apt-get autoclean -y && \
61    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
62    dpkg-reconfigure locales
63
64ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
65ENV LANG "en_US.UTF-8"
66ENV MAKE "/usr/bin/make"
67ENV NINJA "/usr/bin/ninja"
68ENV PYTHON "/usr/bin/python3"
69
70RUN export DEBIAN_FRONTEND=noninteractive && \
71    dpkg --add-architecture armhf && \
72    eatmydata apt-get update && \
73    eatmydata apt-get dist-upgrade -y && \
74    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
75    eatmydata apt-get install --no-install-recommends -y \
76                      g++-arm-linux-gnueabihf \
77                      gcc-arm-linux-gnueabihf \
78                      libaio-dev:armhf \
79                      libasan5:armhf \
80                      libasound2-dev:armhf \
81                      libattr1-dev:armhf \
82                      libbpf-dev:armhf \
83                      libbrlapi-dev:armhf \
84                      libbz2-dev:armhf \
85                      libc6-dev:armhf \
86                      libcacard-dev:armhf \
87                      libcap-ng-dev:armhf \
88                      libcapstone-dev:armhf \
89                      libcmocka-dev:armhf \
90                      libcurl4-gnutls-dev:armhf \
91                      libdaxctl-dev:armhf \
92                      libdrm-dev:armhf \
93                      libepoxy-dev:armhf \
94                      libfdt-dev:armhf \
95                      libffi-dev:armhf \
96                      libfuse3-dev:armhf \
97                      libgbm-dev:armhf \
98                      libgcrypt20-dev:armhf \
99                      libglib2.0-dev:armhf \
100                      libglusterfs-dev:armhf \
101                      libgnutls28-dev:armhf \
102                      libgtk-3-dev:armhf \
103                      libibumad-dev:armhf \
104                      libibverbs-dev:armhf \
105                      libiscsi-dev:armhf \
106                      libjemalloc-dev:armhf \
107                      libjpeg62-turbo-dev:armhf \
108                      libjson-c-dev:armhf \
109                      liblttng-ust-dev:armhf \
110                      liblzo2-dev:armhf \
111                      libncursesw5-dev:armhf \
112                      libnfs-dev:armhf \
113                      libnuma-dev:armhf \
114                      libpam0g-dev:armhf \
115                      libpixman-1-dev:armhf \
116                      libpng-dev:armhf \
117                      libpulse-dev:armhf \
118                      librbd-dev:armhf \
119                      librdmacm-dev:armhf \
120                      libsasl2-dev:armhf \
121                      libsdl2-dev:armhf \
122                      libsdl2-image-dev:armhf \
123                      libseccomp-dev:armhf \
124                      libselinux1-dev:armhf \
125                      libslirp-dev:armhf \
126                      libsnappy-dev:armhf \
127                      libspice-server-dev:armhf \
128                      libssh-gcrypt-dev:armhf \
129                      libsystemd-dev:armhf \
130                      libtasn1-6-dev:armhf \
131                      libubsan1:armhf \
132                      libudev-dev:armhf \
133                      liburing-dev:armhf \
134                      libusb-1.0-0-dev:armhf \
135                      libusbredirhost-dev:armhf \
136                      libvdeplug-dev:armhf \
137                      libvirglrenderer-dev:armhf \
138                      libvte-2.91-dev:armhf \
139                      libxen-dev:armhf \
140                      libzstd-dev:armhf \
141                      nettle-dev:armhf \
142                      systemtap-sdt-dev:armhf \
143                      xfslibs-dev:armhf \
144                      zlib1g-dev:armhf && \
145    eatmydata apt-get autoremove -y && \
146    eatmydata apt-get autoclean -y && \
147    mkdir -p /usr/local/share/meson/cross && \
148    echo "[binaries]\n\
149c = '/usr/bin/arm-linux-gnueabihf-gcc'\n\
150ar = '/usr/bin/arm-linux-gnueabihf-gcc-ar'\n\
151strip = '/usr/bin/arm-linux-gnueabihf-strip'\n\
152pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'\n\
153\n\
154[host_machine]\n\
155system = 'linux'\n\
156cpu_family = 'arm'\n\
157cpu = 'armhf'\n\
158endian = 'little'" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
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/arm-linux-gnueabihf-c++ && \
162    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-cc && \
163    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-g++ && \
164    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-gcc
165
166ENV ABI "arm-linux-gnueabihf"
167ENV MESON_OPTS "--cross-file=arm-linux-gnueabihf"
168ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
169ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user
170