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
12RUN apt install -yy crossbuild-essential-armel
13RUN DEBIAN_FRONTEND=noninteractive eatmydata \
14    apt-get 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 DEBIAN_FRONTEND=noninteractive eatmydata \
20    apt-get install -y --no-install-recommends \
21        libbz2-dev:armel \
22        liblzo2-dev:armel \
23        librdmacm-dev:armel \
24        libsnappy-dev:armel
25