mirror of
https://github.com/antonblanchard/chiselwatt.git
synced 2026-01-11 23:53:33 +00:00
Improved build instructions by using Fusesoc as package manager and multi-target toolchain. Updated hello_world sample app to fetch clock from SYSCON registers. Rebuilt all sample applications based on latest version and using SYSCON Improve Makefile build process for samples. Signed-off-by: Carlos de Paula <me@carlosedp.com>
32 lines
919 B
Docker
32 lines
919 B
Docker
# build with docker build -t REPO/crossbuild-ppc64le -f Dockerfile.crossbuild-ppc64le .
|
|
FROM python:3-buster
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV TOOLCHAIN_URL https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--bleeding-edge-2020.08-1.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 $PATH:/opt/powerpc64le-toolchain/bin
|
|
ENV CROSS_COMPILE powerpc64le-linux-
|
|
|
|
RUN powerpc64le-linux-gcc --version
|
|
|
|
CMD ["/bin/bash"] |