Skip to content

Commit 0d727f3

Browse files
authored
Add quick build SH
1 parent d644525 commit 0d727f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build-kernel-fast.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
export CLANG_TRIPLE=aarch64-linux-gnu-
3+
export GCC64_PATH=../toolchain/gcc/bin/aarch64-linux-androidkernel-
4+
export CROSS_COMPILE=../toolchain/gcc/bin/aarch64-linux-androidkernel-
5+
6+
make O=./out ARCH=arm64 REAL_CC=../toolchain/clang/bin/clang -j12
7+
cp -f ./out/arch/arm64/boot/Image.gz-dtb ./packing/Image.gz-dtb
8+
cd ./packing
9+
./magiskboot split Image.gz-dtb
10+
mv kernel_dtb dtb
11+
./magiskboot dtb dtb patch
12+
./magiskboot hexpatch ./kernel \
13+
736B69705F696E697472616D667300 \
14+
77616E745F696E697472616D667300
15+
./magiskboot repack ./sample.img
16+

0 commit comments

Comments
 (0)