-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (63 loc) · 1.32 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM debian:bookworm
# Build dependencies
RUN \
apt-get update -y \
&& dpkg --add-architecture armhf \
&& apt-get update -y \
&& apt-get install -y \
autoconf \
autogen \
automake \
bison \
build-essential \
cmake \
cross-gcc-dev \
crossbuild-essential-armhf \
curl \
file \
flex \
g++-arm-linux-gnueabihf \
gawk \
gcc-arm-linux-gnueabihf \
git \
gperf \
help2man \
libglu1-mesa-dev \
libncurses-dev \
libtool \
libtool-bin \
libtool-doc \
libx11-dev \
libx11-dev \
libxext-dev \
libxinerama-dev \
mesa-common-dev \
nasm \
shtool \
texinfo \
unzip \
wget \
xorg-dev
# Pull in crosstool-ng
RUN \
git clone https://github.com/NiLuJe/crosstool-ng /crosstool-ng-sources
# Build crosstool-ng
WORKDIR /crosstool-ng-sources
RUN \
./bootstrap \
&& ./configure \
&& make \
&& make install
# Set up a temp dir to configure crosstool in
RUN \
mkdir -p /crosstool-cfg \
&& /crosstool-cfg \
&& mkdir -p /home/crosstooluser/src \
&& ct-ng arm-kobo-linux-gnueabihf
# Set up a temp user for crosstool to use
RUN \
echo "CT_EXPERIMENTAL=y\n" >> .config \
&& echo "CT_ALLOW_BUILD_AS_ROOT=y\n" >> .config \
&& echo "CT_ALLOW_BUILD_AS_ROOT_SURE=y\n" >> .config \
&& mkdir -p /root/src \
&& ct-ng build