Added KernelSu

This commit is contained in:
Ksawlii 2024-11-19 22:41:46 +01:00
parent dd4f8d1c0e
commit 7902dbc903

View file

@ -36,15 +36,15 @@ MODULES_DIR="$DLKM_RAMDISK_DIR/lib/modules"
MKBOOTIMG="$(pwd)/kernel_build/mkbootimg/mkbootimg.py" MKBOOTIMG="$(pwd)/kernel_build/mkbootimg/mkbootimg.py"
MKDTBOIMG="$(pwd)/kernel_build/dtb/mkdtboimg.py" MKDTBOIMG="$(pwd)/kernel_build/dtb/mkdtboimg.py"
OUT_KERNELZIP="$(pwd)/kernel_build/FireAsf-${FIRE_VERSION}-NoDebug-Stable_a53x.zip" OUT_KERNELZIP="$(pwd)/kernel_build/FireAsf-${FIRE_VERSION}-KSU-Stable_a53x.zip"
OUT_KERNELTAR="$(pwd)/kernel_build/FireAsf-${FIRE_VERSION}-NoDebug-Stable_a53x.tar" OUT_KERNELTAR="$(pwd)/kernel_build/FireAsf-${FIRE_VERSION}-KSU-Stable_a53x.tar"
OUT_KERNEL="$OUTDIR/arch/arm64/boot/Image" OUT_KERNEL="$OUTDIR/arch/arm64/boot/Image"
OUT_BOOTIMG="$(pwd)/kernel_build/zip/boot.img" OUT_BOOTIMG="$(pwd)/kernel_build/zip/boot.img"
OUT_VENDORBOOTIMG="$(pwd)/kernel_build/zip/vendor_boot.img" OUT_VENDORBOOTIMG="$(pwd)/kernel_build/zip/vendor_boot.img"
OUT_DTBIMAGE="$TMPDIR/dtb.img" OUT_DTBIMAGE="$TMPDIR/dtb.img"
# Kernel-side # Kernel-side
BUILD_ARGS="LOCALVERSION=-FireAsf-${FIRE_VERSION}-NoDebug-Stable KBUILD_BUILD_USER=Ksawlii KBUILD_BUILD_HOST=FireAsFuck" BUILD_ARGS="LOCALVERSION=-FireAsf-${FIRE_VERSION}-KSU-Stable KBUILD_BUILD_USER=Ksawlii KBUILD_BUILD_HOST=FireAsFuck"
kfinish() { kfinish() {
rm -rf "$TMPDIR" rm -rf "$TMPDIR"
@ -74,7 +74,7 @@ if [ ! -d "$PARENT_DIR/build-tools" ]; then
git clone https://android.googlesource.com/platform/prebuilts/build-tools "$PARENT_DIR/build-tools" --depth=1 git clone https://android.googlesource.com/platform/prebuilts/build-tools "$PARENT_DIR/build-tools" --depth=1
fi fi
make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS a53x-nodebug_defconfig >/dev/null make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS a53x-ksu_defconfig >/dev/null
make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS dtbs >/dev/null make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS dtbs >/dev/null
make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS >/dev/null make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS >/dev/null
make -j$(nproc --all) -C $(pwd) O=out INSTALL_MOD_STRIP="--strip-debug --keep-section=.ARM.attributes" INSTALL_MOD_PATH="$MODULES_OUTDIR" modules_install >/dev/null make -j$(nproc --all) -C $(pwd) O=out INSTALL_MOD_STRIP="--strip-debug --keep-section=.ARM.attributes" INSTALL_MOD_PATH="$MODULES_OUTDIR" modules_install >/dev/null