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