-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
23 lines (18 loc) · 959 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:stretch
WORKDIR /workdir
ENV LINUX=/workdir/rpi64-linux \
RPI_KERNEL_REPO=https://www.github.com/raspberrypi/linux \
RPI_KERNEL_BRANCH=rpi-4.19.y \
TIMESTAMP_OUTPUT=true
# Install build dependencies
RUN apt-get update && \
apt-get install -y bc build-essential curl git-core libncurses5-dev kmod flex bison libssl-dev
# Install crosscompile toolchain for ARM64/aarch64
RUN mkdir -p /opt/linaro && \
curl -sSL https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz | tar xfJ - -C /opt/linaro
ENV CROSS_COMPILE=/opt/linaro/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
# Get the Linux kernel 4.19 source
RUN git clone --single-branch --branch $RPI_KERNEL_BRANCH --depth 1 $RPI_KERNEL_REPO $LINUX
COPY defconfigs/ /defconfigs/
COPY build-kernel.sh get-kernel-version.sh refresh-repo.sh /
CMD ["/build-kernel.sh"]