1#
2# Docker armel cross-compiler target
3#
4# This docker target builds on the debian Stretch base image.
5#
6FROM qemu:debian9
7MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
8
9# Add the foreign architecture we want and install dependencies
10RUN dpkg --add-architecture armel && \
11    apt update && \
12    apt install -yy crossbuild-essential-armel && \
13    DEBIAN_FRONTEND=noninteractive eatmydata \
14    apt build-dep -yy -a armel qemu
15
16# Specify the cross prefix for this image (see tests/docker/common.rc)
17ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabi-
18
19RUN apt update && \
20    DEBIAN_FRONTEND=noninteractive eatmydata \
21    apt install -y --no-install-recommends \
22        libbz2-dev:armel \
23        liblzo2-dev:armel \
24        librdmacm-dev:armel \
25        libsnappy-dev:armel
26