summaryrefslogtreecommitdiff
path: root/tests/docker/dockerfiles/debian-armhf-cross.docker
blob: ba8d5a5167f1da7061cc583f957abdc54a21c749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Docker armhf cross-compiler target
#
# This docker target builds on the base debian image.
#
FROM qemu:debian

# Add the foreign architecture we want and install dependencies
RUN dpkg --add-architecture armhf
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
    apt-get install -y --no-install-recommends \
        crossbuild-essential-armhf
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
    apt-get build-dep -yy -a armhf qemu

# Specify the cross prefix for this image (see tests/docker/common.rc)
ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-