1#
2# Docker armhf cross-compiler target
3#
4# This docker target builds on the debian Stretch base image.
5#
6FROM qemu:debian9
7
8# Add the foreign architecture we want and install dependencies
9RUN dpkg --add-architecture armhf
10RUN apt update
11RUN DEBIAN_FRONTEND=noninteractive eatmydata \
12    apt-get install -y --no-install-recommends \
13        crossbuild-essential-armhf
14RUN DEBIAN_FRONTEND=noninteractive eatmydata \
15    apt-get build-dep -yy -a armhf qemu
16
17# Specify the cross prefix for this image (see tests/docker/common.rc)
18ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
19
20RUN DEBIAN_FRONTEND=noninteractive eatmydata \
21    apt-get install -y --no-install-recommends \
22        glusterfs-common:armhf \
23        libbz2-dev:armhf \
24        liblzo2-dev:armhf \
25        libncursesw5-dev:armhf \
26        libnfs-dev:armhf \
27        librdmacm-dev:armhf \
28        libsnappy-dev:armhf \
29        libxen-dev:armhf
30