2021-09-22 18:15:27 +03:00
|
|
|
#
|
|
|
|
# Docker Debian Native
|
|
|
|
#
|
2022-07-22 17:35:21 +03:00
|
|
|
# This is intended to build QEMU on native host systems. Debian is
|
2021-09-22 18:15:27 +03:00
|
|
|
# chosen due to the broadest range on supported host systems for QEMU.
|
|
|
|
#
|
|
|
|
# This docker target is based on the docker.io Debian Bullseye base
|
|
|
|
# image rather than QEMU's base because we would otherwise confuse the
|
|
|
|
# build grabbing stuff from the registry built for other
|
|
|
|
# architectures.
|
|
|
|
#
|
|
|
|
FROM docker.io/library/debian:bullseye-slim
|
|
|
|
MAINTAINER Alex Bennée <alex.bennee@linaro.org>
|
|
|
|
|
|
|
|
# Duplicate deb line as deb-src
|
|
|
|
RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
|
|
|
|
|
|
|
|
# Install common build utilities
|
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt build-dep -yy --arch-only qemu
|
|
|
|
|
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
|
|
|
cscope \
|
|
|
|
genisoimage \
|
|
|
|
exuberant-ctags \
|
|
|
|
global \
|
|
|
|
libbz2-dev \
|
|
|
|
liblzo2-dev \
|
|
|
|
libgcrypt20-dev \
|
|
|
|
libfdt-dev \
|
|
|
|
librdmacm-dev \
|
|
|
|
libsasl2-dev \
|
|
|
|
libsnappy-dev \
|
|
|
|
libvte-dev \
|
|
|
|
netcat-openbsd \
|
|
|
|
ninja-build \
|
|
|
|
openssh-client \
|
|
|
|
python3-numpy \
|
|
|
|
python3-opencv \
|
|
|
|
python3-venv
|
|
|
|
|
|
|
|
ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS
|
|
|
|
ENV DEF_TARGET_LIST "none"
|
2023-02-28 22:06:48 +03:00
|
|
|
# As a final step configure the user (if env is defined)
|
|
|
|
ARG USER
|
|
|
|
ARG UID
|
|
|
|
RUN if [ "${USER}" ]; then \
|
|
|
|
id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
|