Compare commits
2 Commits
760874d472
...
5dad1e212b
| Author | SHA1 | Date | |
|---|---|---|---|
| 5dad1e212b | |||
| 3b139f43d2 |
2288
50_add_susfs_in_gki-android15-6.6.patch
Normal file
2288
50_add_susfs_in_gki-android15-6.6.patch
Normal file
File diff suppressed because it is too large
Load Diff
13
build.sh
13
build.sh
@@ -27,11 +27,18 @@ set_vars() {
|
||||
BASEDIR=$(realpath "$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")/..")
|
||||
|
||||
# Build toolchain locations
|
||||
CLANGDIR="${BASEDIR}/prebuilts/clang/host/linux-x86/clang-r547379"
|
||||
GCCDIR="${BASEDIR}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9"
|
||||
GCCDIR32="${BASEDIR}/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9"
|
||||
CLANGDIR="${BASEDIR}/prebuilts/clang/host/linux-x86/clang-r547379"
|
||||
KERNELBUILDTOOLS="${BASEDIR}/prebuilts/kernel-build-tools/linux-x86"
|
||||
|
||||
# Array for all of the custom paths introduced by prebuilts
|
||||
PREBUILTS_PATH=(
|
||||
"${CLANGDIR}/bin"
|
||||
"${GCCDIR}/bin"
|
||||
"${KERNELBUILDTOOLS}/bin"
|
||||
)
|
||||
|
||||
# Common options used for `make`, particularly for cross-compile
|
||||
MAKEOPTS=(
|
||||
O="${BASEDIR}/work"
|
||||
@@ -44,6 +51,7 @@ set_vars() {
|
||||
CLANG_TRIPLE=aarch64-linux-gnu-
|
||||
)
|
||||
|
||||
|
||||
# Environment tools that are already somewhere in the project so we'll use them instead of adding extra dependencies
|
||||
BUSYBOX="${BASEDIR}/prebuilts/magisk/lib/x86_64/libbusybox.so"
|
||||
MAGISKBOOT="${BASEDIR}/prebuilts/magisk/lib/x86_64/libmagiskboot.so"
|
||||
@@ -102,7 +110,8 @@ add_susfs() {
|
||||
|
||||
cp "${BASEDIR}/external/susfs4ksu/kernel_patches/fs/"* "fs/" || { echo "Failed to copy fs patches"; exit 1; }
|
||||
cp "${BASEDIR}/external/susfs4ksu/kernel_patches/include/linux/"* "include/linux/" || { echo "Failed to copy linux patches"; exit 1; }
|
||||
patch --fuzz=3 -p1 < "${BASEDIR}/external/susfs4ksu/kernel_patches/50_add_susfs_in_gki-android15-6.6.patch" || { echo "Failed to patch kernel source for susfs"; exit 1; }
|
||||
# Patch modified so that it works within a constrained environment
|
||||
patch -p1 < "${BASEDIR}/meta/50_add_susfs_in_gki-android15-6.6.patch" || { echo "Failed to patch kernel source for susfs"; exit 1; }
|
||||
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user