2017-02-20 10:51:37 +00:00
|
|
|
#
|
|
|
|
# Docker multiarch cross-compiler target
|
|
|
|
#
|
2017-07-17 21:31:33 -03:00
|
|
|
# This docker target is builds on Debian cross compiler targets to build distro
|
|
|
|
# with a selection of cross compilers for building test binaries.
|
2017-02-20 10:51:37 +00:00
|
|
|
#
|
|
|
|
# On its own you can't build much but the docker-foo-cross targets
|
|
|
|
# build on top of the base debian image.
|
|
|
|
#
|
2017-07-17 21:31:33 -03:00
|
|
|
FROM debian:stretch-slim
|
2017-02-20 10:51:37 +00:00
|
|
|
|
|
|
|
# Duplicate deb line as deb-src
|
2017-06-02 15:56:13 -03:00
|
|
|
RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
|
2017-02-20 10:51:37 +00:00
|
|
|
|
|
|
|
# Install common build utilities
|
2019-07-23 16:15:27 +02:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
2017-06-02 15:56:14 -03:00
|
|
|
apt install -y --no-install-recommends \
|
2020-03-16 17:21:28 +00:00
|
|
|
bc \
|
2017-07-17 21:31:33 -03:00
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
2017-07-17 23:47:13 -03:00
|
|
|
clang \
|
2020-03-16 17:21:28 +00:00
|
|
|
gdb-multiarch \
|
2017-09-22 17:49:31 +02:00
|
|
|
gettext \
|
2017-07-17 21:31:34 -03:00
|
|
|
git \
|
2020-03-16 17:21:28 +00:00
|
|
|
libncurses5-dev \
|
2017-07-17 21:31:34 -03:00
|
|
|
pkg-config \
|
2017-07-17 21:31:37 -03:00
|
|
|
psmisc \
|
2019-09-23 14:11:40 -04:00
|
|
|
python3 \
|
2017-07-17 21:31:37 -03:00
|
|
|
$(apt-get -s build-dep qemu | egrep ^Inst | fgrep '[all]' | cut -d\ -f2)
|