Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add APatch support (unstable).
Browse files Browse the repository at this point in the history
  • Loading branch information
Yttehs authored and Yttehs committed Feb 17, 2024
1 parent c6d4cc3 commit e5d0390
Show file tree
Hide file tree
Showing 3 changed files with 979 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_LOCALVERSION="-InfiniR-X-NetHunter"
CONFIG_LOCALVERSION="-InfiniR-X-NetHunter-APatch"
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="archlinux"
CONFIG_SYSVIPC=y
Expand Down Expand Up @@ -42,6 +42,7 @@ CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_FHANDLE is not set
CONFIG_SF_BINDER=y
CONFIG_KALLSYMS_ALL=y
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT_ALWAYS_ON=y
# CONFIG_RSEQ is not set
Expand Down Expand Up @@ -964,7 +965,7 @@ CONFIG_CRYPTO_DEV_QCEDEV=y
CONFIG_PRINTK_TIME=y
CONFIG_FRAME_WARN=4096
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y
CONFIG_PANIC_TIMEOUT=-1
CONFIG_SCHEDSTATS=y
CONFIG_FTRACE=y
CONFIG_DEBUG_ALIGN_RODATA=y
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# This script is used to build android kernel for mi10 #
# ===----------------------------------------------=== #

KERNEL_VERSION="2.2"
KERNEL_VERSION="2.3"
DEFCONFIG="ucmi_nethunter_apatch_defconfig"

# ===------------=== #
# Clone Dependencies #
Expand Down Expand Up @@ -74,7 +75,7 @@ echo "[+] fetch KenrelSU"
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -

echo "[+] copy defconfig"
cp $(pwd)/ucmi_nethunter_defconfig $(pwd)/arch/arm64/configs/ucmi_nethunter_defconfig
cp $(pwd)/${DEFCONFIG} $(pwd)/arch/arm64/configs/${DEFCONFIG}

# ===-----------------=== #
# Buiding Kernel & Module #
Expand Down Expand Up @@ -142,7 +143,7 @@ echo "[!] cleanning old configuration"
make mrproper

echo "[!] executing defconfig"
make ${args} ucmi_nethunter_defconfig
make ${args} ${DEFCONFIG}

echo "[!] compiling"
make ${args} 2>&1
Expand All @@ -161,7 +162,7 @@ echo "[+] start packaging"

O=out
ARCH=arm64
KERNEL_VERSION="4.19.306-InfiniR-X-NetHunter"
KERNEL_VERSION="4.19.306-InfiniR-X-NetHunter-APatch"
DEVICE=ucmi
ANDROID_VERSION=thirteen

Expand Down
Loading

0 comments on commit e5d0390

Please sign in to comment.