1
0
mirror of https://github.com/antonblanchard/chiselwatt.git synced 2026-02-28 17:29:58 +00:00
Files
antonblanchard.chiselwatt/samples/Dockerfile.crossbuild-ppc64le
Carlos de Paula 4f1d3e5ae7 Add hello_world sample sources and Makefile targets
Added hello_world sources and new Makefile targets for building
hello_world and Micropython inside containers.

Updated documentation reflecting these changes and moved binaries
to ./samples/binaries/.

Signed-off-by: Carlos de Paula <me@carlosedp.com>
2020-04-28 13:50:50 -03:00

32 lines
917 B
Docker

# build with docker build -t REPO/crossbuild-ppc64le -f Dockerfile.crossbuild-ppc64le .
FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
ENV TOOLCHAIN_URL https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--bleeding-edge-2020.02-2.tar.bz2
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
autoconf \
curl \
wget \
git \
python3 \
python3-pip \
bzip2 \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /build
RUN wget $TOOLCHAIN_URL && \
mkdir -p /opt/powerpc64le-toolchain && \
tar vxf $(basename $TOOLCHAIN_URL) -C /opt/powerpc64le-toolchain --strip-components=1 && \
rm -rf $(basename $TOOLCHAIN_URL)
ENV PATH /opt/powerpc64le-toolchain/bin:$PATH
ENV CROSS_COMPILE powerpc64le-linux-
RUN powerpc64le-linux-gcc --version
CMD ["/bin/bash"]