-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
40 lines (39 loc) · 1.11 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
FROM debian:stretch
ADD 0001-uboot-toolchain.patch /opt/0001-uboot-toolchain.patch
RUN apt update && apt -y upgrade && \
apt -y install \
git build-essential pkg-config \
libz-dev libusb-1.0-0-dev \
u-boot-tools \
img2simg \
libacl1-dev \
liblzo2-dev \
uuid-dev \
crossbuild-essential-armhf \
&& \
\
cd /opt && \
git clone --branch master --single-branch --depth 1 git://github.com/linux-sunxi/sunxi-tools && \
cd sunxi-tools && \
make && \
make misc && \
make install && \
cp sunxi-nand-image-builder /usr/local/bin/ && \
cd .. && \
\
git clone --branch by/1.5.2/next-mlc-debian --single-branch --depth 1 git://github.com/nextthingco/CHIP-mtd-utils && \
cd CHIP-mtd-utils && \
make && \
make install && \
cd .. && \
\
git clone --branch production-mlc --single-branch --depth 1 git://github.com/nextthingco/CHIP-u-boot && \
cd CHIP-u-boot && \
git config user.email "[email protected]" && \
git config user.name "Next Thing Co." && \
git am /opt/0001-uboot-toolchain.patch && \
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make CHIP_defconfig && \
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j8 && \
cd .. && \
\
echo DONE!