File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
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" ]
You can’t perform that action at this time.
0 commit comments