-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (45 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Dockerfile to build Das U-Boot for the Cyrus (AmigaOne X5000/20 and AmigaOne X5000/40)
# and Tabor (AmigaOne A1222) motherboards.
#
# The source code is assumed to be in
# /opt/u-boot
#
# which is also the work directory.
#
FROM debian:jessie
LABEL maintainer="Steven Solie <[email protected]>"
#
# This is where the source code is located and the build takes place.
#
WORKDIR /opt/u-boot
#
# Perform all the steps in a single RUN to avoid creating file system layers.
#
RUN apt-get update && apt-get upgrade --yes && \
apt-get install -y \
make \
gcc-4.9 \
curl \
xz-utils \
&& \
ln -s /usr/bin/gcc-4.9 /usr/bin/gcc \
&& \
curl -fSl "http://newos.org/toolchains/powerpc-elf-4.9.1-Linux-x86_64.tar.xz" -o /tmp/powerpc-elf-4.9.1-Linux-x86_64.tar.xz && \
cd /tmp && \
xz -d powerpc-elf-4.9.1-Linux-x86_64.tar.xz && \
tar xf powerpc-elf-4.9.1-Linux-x86_64.tar && \
mv powerpc-elf-4.9.1-Linux-x86_64 /opt/powerpc-elf-4.9.1 && \
rm powerpc-elf-4.9.1-Linux-x86_64.tar \
&& \
apt-get --assume-yes purge \
curl \
xz-utils \
&& \
apt-get --assume-yes autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
#
# Add the cross-compiler to the PATH
#
ENV PATH=/opt/powerpc-elf-4.9.1/bin:$PATH