Skip to content

Commit bb70cc0

Browse files
author
NoahAndrews
committed
Add Dockerfile
1 parent 8d440df commit bb70cc0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ubuntu:18.04
2+
3+
# NOTE: This Dockerfile needs to be manually updated if the kernel or Android version is updated.
4+
5+
# Run these commands to build the kernel.
6+
# docker build --tag ch-kernel-build .
7+
# docker run -i -t -v .:/build/kernel ch-kernel-build
8+
9+
RUN apt-get update -y && apt-get install -y python build-essential git
10+
11+
ENV GCC_PARENT=/build/prebuilts/gcc/linux-x86/aarch64/
12+
RUN mkdir -p $GCC_PARENT \
13+
&& cd $GCC_PARENT \
14+
&& git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 \
15+
&& cd aarch64-linux-android-4.9 \
16+
&& git checkout refs/tags/android-7.1.2_r6
17+
18+
WORKDIR /build/kernel
19+
ENTRYPOINT ["./build-rk3328-kernel.sh"]

0 commit comments

Comments
 (0)