1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all --cross armv7l debian-11 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:11-slim
9 RUN export DEBIAN_FRONTEND=noninteractive && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
35 libspice-protocol-dev \
50 python3-sphinx-rtd-theme \
61 eatmydata apt-get autoremove -y && \
62 eatmydata apt-get autoclean -y && \
63 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
64 dpkg-reconfigure locales
66 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
67 ENV LANG "en_US.UTF-8"
68 ENV MAKE "/usr/bin/make"
69 ENV NINJA "/usr/bin/ninja"
70 ENV PYTHON "/usr/bin/python3"
72 RUN export DEBIAN_FRONTEND=noninteractive && \
73 dpkg --add-architecture armhf && \
74 eatmydata apt-get update && \
75 eatmydata apt-get dist-upgrade -y && \
76 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
77 eatmydata apt-get install --no-install-recommends -y \
78 g++-arm-linux-gnueabihf \
79 gcc-arm-linux-gnueabihf \
82 libasound2-dev:armhf \
90 libcapstone-dev:armhf \
92 libcurl4-gnutls-dev:armhf \
100 libgcrypt20-dev:armhf \
101 libglib2.0-dev:armhf \
102 libglusterfs-dev:armhf \
103 libgnutls28-dev:armhf \
105 libibumad-dev:armhf \
106 libibverbs-dev:armhf \
108 libjemalloc-dev:armhf \
109 libjpeg62-turbo-dev:armhf \
110 libjson-c-dev:armhf \
111 liblttng-ust-dev:armhf \
113 libncursesw5-dev:armhf \
117 libpixman-1-dev:armhf \
121 librdmacm-dev:armhf \
124 libsdl2-image-dev:armhf \
125 libseccomp-dev:armhf \
126 libselinux1-dev:armhf \
128 libsnappy-dev:armhf \
129 libspice-server-dev:armhf \
130 libssh-gcrypt-dev:armhf \
131 libsystemd-dev:armhf \
132 libtasn1-6-dev:armhf \
136 libusb-1.0-0-dev:armhf \
137 libusbredirhost-dev:armhf \
138 libvdeplug-dev:armhf \
139 libvirglrenderer-dev:armhf \
140 libvte-2.91-dev:armhf \
144 systemtap-sdt-dev:armhf \
146 zlib1g-dev:armhf && \
147 eatmydata apt-get autoremove -y && \
148 eatmydata apt-get autoclean -y && \
149 mkdir -p /usr/local/share/meson/cross && \
150 printf "[binaries]\n\
151 c = '/usr/bin/arm-linux-gnueabihf-gcc'\n\
152 ar = '/usr/bin/arm-linux-gnueabihf-gcc-ar'\n\
153 strip = '/usr/bin/arm-linux-gnueabihf-strip'\n\
154 pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'\n\
158 cpu_family = 'arm'\n\
160 endian = 'little'\n" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
161 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
162 mkdir -p /usr/libexec/ccache-wrappers && \
163 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-c++ && \
164 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-cc && \
165 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-g++ && \
166 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-gcc
168 ENV ABI "arm-linux-gnueabihf"
169 ENV MESON_OPTS "--cross-file=arm-linux-gnueabihf"
170 ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
171 ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user
172 # As a final step configure the user (if env is defined)
175 RUN if [ "${USER}" ]; then \
176 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi