Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
This commit is contained in:
commit
cf256aa081
11315 files changed
+3598369
No files matched your search
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Docker toolchain cross-compiler
|
||||
#
|
||||
# This dockerfile is used for building a cross-compiler toolchain.
|
||||
# The script for building the toolchain is supplied via extra-files.
|
||||
#
|
||||
FROM docker.io/library/debian:13-slim
|
||||
|
||||
# Install build utilities for building gcc and glibc.
|
||||
# ??? The build-dep isn't working, missing a number of
|
||||
# minimal build dependiencies, e.g. libmpc.
|
||||
|
||||
# Add deb-src repository sources
|
||||
RUN sed -i "s/^Types: deb$/Types: deb deb-src/" \
|
||||
/etc/apt/sources.list.d/debian.sources
|
||||
|
||||
RUN apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
|
||||
DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
apt install -y --no-install-recommends \
|
||||
bison \
|
||||
ca-certificates \
|
||||
flex \
|
||||
gawk \
|
||||
libmpc-dev \
|
||||
libmpfr-dev \
|
||||
rsync \
|
||||
wget && \
|
||||
DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
apt build-dep -yy --arch-only gcc glibc
|
||||
|
||||
ADD build-toolchain.sh /root/build-toolchain.sh
|
||||
|
||||
RUN cd /root && ./build-toolchain.sh
|
||||
|
||||
# Throw away the extra toolchain build deps, the downloaded source,
|
||||
# and the build trees by restoring the original image,
|
||||
# then copying the built toolchain from stage 0.
|
||||
FROM docker.io/library/debian:13-slim
|
||||
RUN apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
|
||||
DEBIAN_FRONTEND=noninteractive eatmydata \
|
||||
apt install -y --no-install-recommends \
|
||||
libmpc3
|
||||
COPY --from=0 /usr/local /usr/local
|
||||
# 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
|
||||
Reference in new issue
Block a user